[PATCH v2 08/12] xfree86: Don't register empty block handler

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


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

This reduces about 100ns runtime for each main loop iteration on ARM.

Signed-off-by: Pauli Nieminen <ext-pauli.nieminen at nokia.com>
---
 hw/xfree86/common/xf86Init.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/hw/xfree86/common/xf86Init.c b/hw/xfree86/common/xf86Init.c
index ca532ee..9be8755 100644
--- a/hw/xfree86/common/xf86Init.c
+++ b/hw/xfree86/common/xf86Init.c
@@ -810,8 +810,7 @@ InitOutput(ScreenInfo *pScreenInfo, int argc, char **argv)
   xf86Resetting = FALSE;
   xf86Initialising = FALSE;
 
-  RegisterBlockAndWakeupHandlers((BlockHandlerProcPtr)NoopDDA, xf86Wakeup,
-				 NULL);
+  RegisterWakeupHandler(xf86Wakeup, NULL);
 }
 
 /*
-- 
1.7.0.4



More information about the xorg-devel mailing list