summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2008-01-22 18:57:11 -0500
committerAdam Jackson <ajax@redhat.com>2008-01-22 18:57:11 -0500
commitcc22b05ea06e08568d0f0abdaccf67bd32662e94 (patch)
treefd7fbcd65b12b357035166263e1fab1c381bcfac
parentbe6c17fcf9efebc0bbcc3d9a25f8c5a2450c2161 (diff)
There is no such thing as /dev/cpu/mtrr.
-rw-r--r--hw/xfree86/os-support/linux/lnx_video.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/hw/xfree86/os-support/linux/lnx_video.c b/hw/xfree86/os-support/linux/lnx_video.c
index ad2b66f74..1bd2d575f 100644
--- a/hw/xfree86/os-support/linux/lnx_video.c
+++ b/hw/xfree86/os-support/linux/lnx_video.c
@@ -142,17 +142,8 @@ mtrr_open(int verbosity)
/* Only report absence of /proc/mtrr once. */
static Bool warned = FALSE;
- char **fn;
- static char *mtrr_files[] = {
- "/dev/cpu/mtrr", /* Possible future name */
- "/proc/mtrr", /* Current name */
- NULL
- };
-
if (mtrr_fd == MTRR_FD_UNOPENED) {
- /* So open it. */
- for (fn = mtrr_files; mtrr_fd < 0 && *fn; fn++)
- mtrr_fd = open(*fn, O_WRONLY);
+ mtrr_fd = open("/proc/mtrr", O_WRONLY);
if (mtrr_fd < 0)
mtrr_fd = MTRR_FD_PROBLEM;