[PATCH v2 07/12] vfb: Don't register empty wakeup handler

Pauli ext-pauli.nieminen at nokia.com
Tue Jan 4 03:06:28 PST 2011


From: Pauli Nieminen <ext-pauli.nieminen at nokia.com>

This reduces about 1us runtime for each main loop iteration on ARM.

Signed-off-by: Pauli Nieminen <ext-pauli.nieminen at nokia.com>
---
 hw/vfb/InitOutput.c |   10 +---------
 1 files changed, 1 insertions(+), 9 deletions(-)

diff --git a/hw/vfb/InitOutput.c b/hw/vfb/InitOutput.c
index e109734..e2ef194 100644
--- a/hw/vfb/InitOutput.c
+++ b/hw/vfb/InitOutput.c
@@ -546,13 +546,6 @@ vfbBlockHandler(pointer blockData, OSTimePtr pTimeout, pointer pReadmask)
     }
 }
 
-
-static void
-vfbWakeupHandler(pointer blockData, int result, pointer pReadmask)
-{
-}
-
-
 static void
 vfbAllocateMmappedFramebuffer(vfbScreenInfoPtr pvfb)
 {
@@ -599,8 +592,7 @@ vfbAllocateMmappedFramebuffer(vfbScreenInfoPtr pvfb)
 	return;
     }
 
-    if (!RegisterBlockAndWakeupHandlers(vfbBlockHandler, vfbWakeupHandler,
-					NULL))
+    if (!RegisterBlockHandler(vfbBlockHandler, NULL))
     {
 	pvfb->pXWDHeader = NULL;
     }
-- 
1.7.0.4



More information about the xorg-devel mailing list