[PATCH 17/22] rootless: Use shared NoopDDA to utilize code cache better

Pauli ext-pauli.nieminen at nokia.com
Wed Dec 29 11:27:29 PST 2010


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

Calling function that is in code cache is order of magnitude faster. In
arm non-cached simple function takes about 1us while cached function
takes max 200ns.

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

diff --git a/miext/rootless/rootlessScreen.c b/miext/rootless/rootlessScreen.c
index 61d2f5d..79ecb8d 100644
--- a/miext/rootless/rootlessScreen.c
+++ b/miext/rootless/rootlessScreen.c
@@ -618,14 +618,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,7 +721,7 @@ Bool RootlessInit(ScreenPtr pScreen, RootlessFrameProcsPtr procs)
     RootlessWrap(pScreen);
 
     if (!RegisterBlockAndWakeupHandlers(RootlessBlockHandler,
-                                        RootlessWakeupHandler,
+                                        (WakeupHandlerProcPtr)NoopDDA,
                                         (pointer) pScreen))
     {
         return FALSE;
-- 
1.7.0.4



More information about the xorg-devel mailing list