diff options
Diffstat (limited to 'arch/x86/kernel/cpu/cyrix.c')
-rw-r--r-- | arch/x86/kernel/cpu/cyrix.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/x86/kernel/cpu/cyrix.c b/arch/x86/kernel/cpu/cyrix.c index 88d66fb8411d..404a6a2d4016 100644 --- a/arch/x86/kernel/cpu/cyrix.c +++ b/arch/x86/kernel/cpu/cyrix.c | |||
@@ -5,6 +5,7 @@ | |||
5 | #include <asm/dma.h> | 5 | #include <asm/dma.h> |
6 | #include <asm/io.h> | 6 | #include <asm/io.h> |
7 | #include <asm/processor-cyrix.h> | 7 | #include <asm/processor-cyrix.h> |
8 | #include <asm/processor-flags.h> | ||
8 | #include <asm/timer.h> | 9 | #include <asm/timer.h> |
9 | #include <asm/pci-direct.h> | 10 | #include <asm/pci-direct.h> |
10 | #include <asm/tsc.h> | 11 | #include <asm/tsc.h> |
@@ -126,15 +127,12 @@ static void __cpuinit set_cx86_reorder(void) | |||
126 | 127 | ||
127 | static void __cpuinit set_cx86_memwb(void) | 128 | static void __cpuinit set_cx86_memwb(void) |
128 | { | 129 | { |
129 | u32 cr0; | ||
130 | |||
131 | printk(KERN_INFO "Enable Memory-Write-back mode on Cyrix/NSC processor.\n"); | 130 | printk(KERN_INFO "Enable Memory-Write-back mode on Cyrix/NSC processor.\n"); |
132 | 131 | ||
133 | /* CCR2 bit 2: unlock NW bit */ | 132 | /* CCR2 bit 2: unlock NW bit */ |
134 | setCx86(CX86_CCR2, getCx86(CX86_CCR2) & ~0x04); | 133 | setCx86(CX86_CCR2, getCx86(CX86_CCR2) & ~0x04); |
135 | /* set 'Not Write-through' */ | 134 | /* set 'Not Write-through' */ |
136 | cr0 = 0x20000000; | 135 | write_cr0(read_cr0() | X86_CR0_NW); |
137 | write_cr0(read_cr0() | cr0); | ||
138 | /* CCR2 bit 2: lock NW bit and set WT1 */ | 136 | /* CCR2 bit 2: lock NW bit and set WT1 */ |
139 | setCx86(CX86_CCR2, getCx86(CX86_CCR2) | 0x14 ); | 137 | setCx86(CX86_CCR2, getCx86(CX86_CCR2) | 0x14 ); |
140 | } | 138 | } |