[PATCH v2 05/12] ephyr: Don't register empty wakeup handler

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


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/kdrive/ephyr/ephyr.c |   14 ++------------
 1 files changed, 2 insertions(+), 12 deletions(-)

diff --git a/hw/kdrive/ephyr/ephyr.c b/hw/kdrive/ephyr/ephyr.c
index 8096a24..59e88f3 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)
 {
@@ -397,9 +391,7 @@ ephyrSetInternalDamage (ScreenPtr pScreen)
 				   pScreen,
 				   pScreen);
   
-  if (!RegisterBlockAndWakeupHandlers (ephyrInternalDamageBlockHandler,
-				       ephyrInternalDamageWakeupHandler,
-				       (pointer) pScreen))
+  if (!RegisterBlockHandler(ephyrInternalDamageBlockHandler, pScreen))
     return FALSE;
   
   pPixmap = (*pScreen->GetScreenPixmap) (pScreen);
@@ -421,9 +413,7 @@ ephyrUnsetInternalDamage (ScreenPtr pScreen)
   DamageUnregister (&pPixmap->drawable, scrpriv->pDamage);
   DamageDestroy (scrpriv->pDamage);
   
-  RemoveBlockAndWakeupHandlers (ephyrInternalDamageBlockHandler,
-				ephyrInternalDamageWakeupHandler,
-				(pointer) pScreen);
+  RemoveBlockHandler(ephyrInternalDamageBlockHandler, pScreen);
 }
 
 #ifdef RANDR
-- 
1.7.0.4



More information about the xorg-devel mailing list