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