[PATCH 09/11] rootless: Don't register empty wakeup handler
Pauli
ext-pauli.nieminen at nokia.com
Fri Dec 31 09:31:07 PST 2010
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 61d2f5d..d5ac858 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)
{
@@ -728,9 +720,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