[PATCH 16/22] dmx: Use shared NoopDDA to utilize code cache better
Pauli
ext-pauli.nieminen at nokia.com
Wed Dec 29 11:27:28 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>
---
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
More information about the xorg-devel
mailing list