From: Pauli Nieminen <[email protected]> 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 <[email protected]> --- hw/dmx/dmxsync.c | 7 +------ 1 files changed, 1 insertions(+), 6 deletions(-) diff --git a/hw/dmx/dmxsync.c b/hw/dmx/dmxsync.c index 2c7ccb8..1dbff9c 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 @@ -125,7 +120,7 @@ void dmxSyncInit(void) { if (dmxSyncInterval) { RegisterBlockAndWakeupHandlers(dmxSyncBlockHandler, - dmxSyncWakeupHandler, + (WakupHandlerProcPtr)NoopDDA, NULL); dmxLog(dmxInfo, "XSync batching with %d ms interval\n", dmxSyncInterval); -- 1.7.0.4 _______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
