[PATCH v4 10/12] rootless: Don't register empty wakeup handler

Pauli ext-pauli.nieminen at nokia.com
Wed Jan 5 04:59:11 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>
---
 miext/rootless/rootlessScreen.c |   12 +-----------
 1 files changed, 1 insertions(+), 11 deletions(-)

diff --git a/miext/rootless/rootlessScreen.c b/miext/rootless/rootlessScreen.c
index 43b9cbb..5d2b47f 100644
--- a/miext/rootless/rootlessScreen.c
+++ b/miext/rootless/rootlessScreen.c
@@ -619,14 +619,6 @@ RootlessBlockHandler(pointer pbdata, OSTimePtr pTimeout, pointer pReadmask)
     }
 }
 
-
-static void
-RootlessWakeupHandler(pointer data, int i, pointer LastSelectMask)
-{
-    // nothing here
-}
-
-
 static Bool
 RootlessAllocatePrivates(ScreenPtr pScreen)
 {
@@ -729,9 +721,7 @@ Bool RootlessInit(ScreenPtr pScreen, RootlessFrameProcsPtr procs)
 
     RootlessWrap(pScreen);
 
-    if (!RegisterBlockAndWakeupHandlers(RootlessBlockHandler,
-                                        RootlessWakeupHandler,
-                                        (pointer) pScreen))
+    if (!RegisterBlockHandler(RootlessBlockHandler, pScreen))
     {
         return FALSE;
     }
-- 
1.7.0.4



More information about the xorg-devel mailing list