diff options
Diffstat (limited to 'arch/x86/kernel/cpu/mtrr/state.c')
-rw-r--r-- | arch/x86/kernel/cpu/mtrr/state.c | 3 |
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 49e20c2afcdf..9f8ba923d1c9 100644 --- a/arch/x86/kernel/cpu/mtrr/state.c +++ b/arch/x86/kernel/cpu/mtrr/state.c | |||
@@ -4,6 +4,7 @@ | |||
4 | #include <asm/mtrr.h> | 4 | #include <asm/mtrr.h> |
5 | #include <asm/msr.h> | 5 | #include <asm/msr.h> |
6 | #include <asm/processor-cyrix.h> | 6 | #include <asm/processor-cyrix.h> |
7 | #include <asm/processor-flags.h> | ||
7 | #include "mtrr.h" | 8 | #include "mtrr.h" |
8 | 9 | ||
9 | 10 | ||
@@ -25,7 +26,7 @@ void set_mtrr_prepare_save(struct set_mtrr_context *ctxt) | |||
25 | 26 | ||
26 | /* Disable and flush caches. Note that wbinvd flushes the TLBs as | 27 | /* Disable and flush caches. Note that wbinvd flushes the TLBs as |
27 | a side-effect */ | 28 | a side-effect */ |
28 | cr0 = read_cr0() | 0x40000000; | 29 | cr0 = read_cr0() | X86_CR0_CD; |
29 | wbinvd(); | 30 | wbinvd(); |
30 | write_cr0(cr0); | 31 | write_cr0(cr0); |
31 | wbinvd(); | 32 | wbinvd(); |