[PATCH 16/31] Remove xf86SetReallySlowBcopy()
Daniel Stone
daniel at fooishbar.org
Fri Dec 2 03:31:22 PST 2011
The old bcopy code used to insert an outb to make copies _really_ slow
to attempt to avoid register reordering. airlied made this optional at
some stage, but no-one has ever used it since.
Burn it to the ground with sweet, cleansing, fire.
Signed-off-by: Daniel Stone <daniel at fooishbar.org>
---
hw/xfree86/os-support/misc/SlowBcopy.c | 26 --------------------------
hw/xfree86/os-support/xf86_OSproc.h | 1 -
2 files changed, 0 insertions(+), 27 deletions(-)
diff --git a/hw/xfree86/os-support/misc/SlowBcopy.c b/hw/xfree86/os-support/misc/SlowBcopy.c
index 0021b55..11c86c5 100644
--- a/hw/xfree86/os-support/misc/SlowBcopy.c
+++ b/hw/xfree86/os-support/misc/SlowBcopy.c
@@ -22,35 +22,9 @@
#include "xf86_OSlib.h"
#include "compiler.h"
-static int really_slow_bcopy;
-
-void
-xf86SetReallySlowBcopy(void)
-{
- really_slow_bcopy = 1;
-}
-
-#if defined(__i386__) || defined(__amd64__)
-static void xf86_really_slow_bcopy(unsigned char *src, unsigned char *dst, int len)
-{
- while(len--)
- {
- *dst++ = *src++;
- outb(0x80, 0x00);
- }
-}
-#endif
-
-/* The outb() isn't needed on my machine, but who knows ... -- ost */
void
xf86SlowBcopy(unsigned char *src, unsigned char *dst, int len)
{
-#if defined(__i386__) || defined(__amd64__)
- if (really_slow_bcopy) {
- xf86_really_slow_bcopy(src, dst, len);
- return;
- }
-#endif
while(len--)
*dst++ = *src++;
}
diff --git a/hw/xfree86/os-support/xf86_OSproc.h b/hw/xfree86/os-support/xf86_OSproc.h
index 78ea6e6..b7eef90 100644
--- a/hw/xfree86/os-support/xf86_OSproc.h
+++ b/hw/xfree86/os-support/xf86_OSproc.h
@@ -144,7 +144,6 @@ extern _X_EXPORT void xf86SetTVOut(int);
extern _X_EXPORT void xf86SetRGBOut(void);
#endif
extern _X_EXPORT void xf86OSRingBell(int, int, int);
-extern _X_EXPORT void xf86SetReallySlowBcopy(void);
extern _X_EXPORT void xf86SlowBcopy(unsigned char *, unsigned char *, int);
extern _X_EXPORT int xf86OpenSerial(XF86OptionPtr options);
extern _X_EXPORT int xf86SetSerial(int fd, XF86OptionPtr options);
--
1.7.7.3
More information about the xorg-devel
mailing list