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/vfb/InitOutput.c |    9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)

diff --git a/hw/vfb/InitOutput.c b/hw/vfb/InitOutput.c
index 53f82f9..366a01f 100644
--- a/hw/vfb/InitOutput.c
+++ b/hw/vfb/InitOutput.c
@@ -546,13 +546,6 @@ vfbBlockHandler(pointer blockData, OSTimePtr pTimeout, 
pointer pReadmask)
     }
 }
 
-
-static void
-vfbWakeupHandler(pointer blockData, int result, pointer pReadmask)
-{
-}
-
-
 static void
 vfbAllocateMmappedFramebuffer(vfbScreenInfoPtr pvfb)
 {
@@ -599,7 +592,7 @@ vfbAllocateMmappedFramebuffer(vfbScreenInfoPtr pvfb)
        return;
     }
 
-    if (!RegisterBlockAndWakeupHandlers(vfbBlockHandler, vfbWakeupHandler,
+    if (!RegisterBlockAndWakeupHandlers(vfbBlockHandler, 
(WakeupHandlerProcPtr)NoopDDA,
                                        NULL))
     {
        pvfb->pXWDHeader = NULL;
-- 
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