[PATCH 06/11] vfb: Don't register empty wakeup handler
Pauli
ext-pauli.nieminen at nokia.com
Fri Dec 31 09:31:04 PST 2010
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/vfb/InitOutput.c | 10 +---------
1 files changed, 1 insertions(+), 9 deletions(-)
diff --git a/hw/vfb/InitOutput.c b/hw/vfb/InitOutput.c
index 53f82f9..f7b0a7c 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,8 +592,7 @@ vfbAllocateMmappedFramebuffer(vfbScreenInfoPtr pvfb)
return;
}
- if (!RegisterBlockAndWakeupHandlers(vfbBlockHandler, vfbWakeupHandler,
- NULL))
+ if (!RegisterBlockHandler(vfbBlockHandler, NULL))
{
pvfb->pXWDHeader = NULL;
}
--
1.7.0.4
More information about the xorg-devel
mailing list