From: Pauli Nieminen <[email protected]>

This reduces about 1us runtime for each main loop iteration on ARM.

Signed-off-by: Pauli Nieminen <[email protected]>
---
 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

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to