[PATCH 12/22] kdrive/ephyr: Use shared NoopDDA to utilize code cache better
Pauli
ext-pauli.nieminen at nokia.com
Wed Dec 29 11:27:24 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/kdrive/ephyr/ephyr.c | 10 ++--------
1 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/hw/kdrive/ephyr/ephyr.c b/hw/kdrive/ephyr/ephyr.c
index 8096a24..77b6f12 100644
--- a/hw/kdrive/ephyr/ephyr.c
+++ b/hw/kdrive/ephyr/ephyr.c
@@ -376,12 +376,6 @@ ephyrInternalDamageBlockHandler (pointer data,
ephyrInternalDamageRedisplay (pScreen);
}
-static void
-ephyrInternalDamageWakeupHandler (pointer data, int i, pointer LastSelectMask)
-{
- /* FIXME: Not needed ? */
-}
-
Bool
ephyrSetInternalDamage (ScreenPtr pScreen)
{
@@ -398,7 +392,7 @@ ephyrSetInternalDamage (ScreenPtr pScreen)
pScreen);
if (!RegisterBlockAndWakeupHandlers (ephyrInternalDamageBlockHandler,
- ephyrInternalDamageWakeupHandler,
+ (WakeupHandlerProcPtr)NoopDDA,
(pointer) pScreen))
return FALSE;
@@ -422,7 +416,7 @@ ephyrUnsetInternalDamage (ScreenPtr pScreen)
DamageDestroy (scrpriv->pDamage);
RemoveBlockAndWakeupHandlers (ephyrInternalDamageBlockHandler,
- ephyrInternalDamageWakeupHandler,
+ (WakeupHandlerProcPtr)NoopDDA,
(pointer) pScreen);
}
--
1.7.0.4
More information about the xorg-devel
mailing list