[PATCH 08/11] dmx: Don't register empty wakeup handler

Pauli ext-pauli.nieminen at nokia.com
Fri Dec 31 09:31:06 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>
---
 hw/dmx/dmxsync.c |    9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)

diff --git a/hw/dmx/dmxsync.c b/hw/dmx/dmxsync.c
index 2c7ccb8..a9680af 100644
--- a/hw/dmx/dmxsync.c
+++ b/hw/dmx/dmxsync.c
@@ -99,11 +99,6 @@ static void dmxSyncBlockHandler(pointer blockData, OSTimePtr pTimeout,
     TimerForce(dmxSyncTimer);
 }
 
-static void dmxSyncWakeupHandler(pointer blockData, int result,
-                                 pointer pReadMask)
-{
-}
-
 /** Request the XSync() batching optimization with the specified \a
  * interval (in mS).  If the \a interval is 0, 100mS is used.  If the \a
  * interval is less than 0, then the XSync() batching optimization is
@@ -124,9 +119,7 @@ void dmxSyncActivate(const char *interval)
 void dmxSyncInit(void)
 {
     if (dmxSyncInterval) {
-        RegisterBlockAndWakeupHandlers(dmxSyncBlockHandler,
-                                       dmxSyncWakeupHandler,
-                                       NULL);
+        RegisterBlockHandler(dmxSyncBlockHandler, NULL);
         dmxLog(dmxInfo, "XSync batching with %d ms interval\n",
                dmxSyncInterval);
     } else {
-- 
1.7.0.4



More information about the xorg-devel mailing list