[Intel-gfx] [PATCH 3/5] intel_mmio: a query for forcewake requirement

Ben Widawsky ben at bwidawsk.net
Fri Feb 22 07:05:34 CET 2013


Signed-off-by: Ben Widawsky <ben at bwidawsk.net>
---
 lib/intel_mmio.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/lib/intel_mmio.c b/lib/intel_mmio.c
index 3933080..2f0d74a 100644
--- a/lib/intel_mmio.c
+++ b/lib/intel_mmio.c
@@ -228,6 +228,12 @@ intel_register_access_fini(void)
 	mmio_data.inited--;
 }
 
+int
+intel_register_access_needs_wake(void)
+{
+	return mmio_data.key == FAKEKEY;
+}
+
 uint32_t
 intel_register_read(uint32_t reg)
 {
-- 
1.8.1.4




More information about the Intel-gfx mailing list