summaryrefslogtreecommitdiff
path: root/arch/x86/kernel/cpu/mtrr/state.c
diff options
context:
space:
mode:
authorDave Jones <davej@redhat.com>2008-01-30 12:30:39 (GMT)
committerIngo Molnar <mingo@elte.hu>2008-01-30 12:30:39 (GMT)
commit7ebad705340f35276326ed93a43190e62f725f77 (patch)
tree74ea4a90df146eadc51884833f104a9c1d4a786f /arch/x86/kernel/cpu/mtrr/state.c
parent3578facf737dc9a60ed19a83458bd9cfdc2af233 (diff)
downloadlinux-fsl-qoriq-7ebad705340f35276326ed93a43190e62f725f77.tar.xz
x86: use CR0 defines.
Signed-off-by: Dave Jones <davej@redhat.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/cpu/mtrr/state.c')
-rw-r--r--arch/x86/kernel/cpu/mtrr/state.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/mtrr/state.c b/arch/x86/kernel/cpu/mtrr/state.c
index 49e20c2..9f8ba92 100644
--- a/arch/x86/kernel/cpu/mtrr/state.c
+++ b/arch/x86/kernel/cpu/mtrr/state.c
@@ -4,6 +4,7 @@
#include <asm/mtrr.h>
#include <asm/msr.h>
#include <asm/processor-cyrix.h>
+#include <asm/processor-flags.h>
#include "mtrr.h"
@@ -25,7 +26,7 @@ void set_mtrr_prepare_save(struct set_mtrr_context *ctxt)
/* Disable and flush caches. Note that wbinvd flushes the TLBs as
a side-effect */
- cr0 = read_cr0() | 0x40000000;
+ cr0 = read_cr0() | X86_CR0_CD;
wbinvd();
write_cr0(cr0);
wbinvd();