diff options
author | Yinghai Lu <yhlu.kernel.send@gmail.com> | 2008-03-24 19:02:01 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-17 11:41:20 -0400 |
commit | 35605a1027ac630f85a1b95684f7e86b82498cd6 (patch) | |
tree | c6cd011599b1c86bbbfb81a19f785520036ea844 /arch/x86/mm/pat.c | |
parent | 52783fa8d6b847857fdd86df418e09c026d816f5 (diff) |
x86: enable PAT for amd k8 and fam10h
make known_pat_cpu to think amd k8 and fam10h is ok too.
also make tom2 below to be WRBACK
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/mm/pat.c')
-rw-r--r-- | arch/x86/mm/pat.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/mm/pat.c b/arch/x86/mm/pat.c index 57a2af36d6ee..0648a2225b09 100644 --- a/arch/x86/mm/pat.c +++ b/arch/x86/mm/pat.c | |||
@@ -47,6 +47,12 @@ static int pat_known_cpu(void) | |||
47 | return 1; | 47 | return 1; |
48 | } | 48 | } |
49 | } | 49 | } |
50 | if (boot_cpu_data.x86_vendor == X86_VENDOR_AMD && | ||
51 | boot_cpu_data.x86 >= 0xf && boot_cpu_data.x86 <= 0x11) { | ||
52 | if (cpu_has_pat) { | ||
53 | return 1; | ||
54 | } | ||
55 | } | ||
50 | 56 | ||
51 | pat_wc_enabled = 0; | 57 | pat_wc_enabled = 0; |
52 | printk(KERN_INFO "CPU and/or kernel does not support PAT.\n"); | 58 | printk(KERN_INFO "CPU and/or kernel does not support PAT.\n"); |