Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 156723
b: refs/heads/master
c: fbd8b18
h: refs/heads/master
i:
  156721: 4477075
  156719: 23abbe1
v: v3
  • Loading branch information
Kevin Winchester authored and Ingo Molnar committed Aug 11, 2009
1 parent 3e7c887 commit 839bea8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0d01f31439c1e4d602bf9fdc924ab66f407f5e38
refs/heads/master: fbd8b1819e80ac5a176d085fdddc3a34d1499318
7 changes: 7 additions & 0 deletions trunk/arch/x86/kernel/cpu/amd.c
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,13 @@ static void __cpuinit init_amd(struct cpuinfo_x86 *c)
level = cpuid_eax(1);
if((level >= 0x0f48 && level < 0x0f50) || level >= 0x0f58)
set_cpu_cap(c, X86_FEATURE_REP_GOOD);

/*
* Some BIOSes incorrectly force this feature, but only K8
* revision D (model = 0x14) and later actually support it.
*/
if (c->x86_model < 0x14)
clear_cpu_cap(c, X86_FEATURE_LAHF_LM);
}
if (c->x86 == 0x10 || c->x86 == 0x11)
set_cpu_cap(c, X86_FEATURE_REP_GOOD);
Expand Down

0 comments on commit 839bea8

Please sign in to comment.