Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 56671
b: refs/heads/master
c: c12ceb7
h: refs/heads/master
i:
  56669: e77c831
  56667: a7b07e5
  56663: a55367f
  56655: 89df533
  56639: c36ded5
v: v3
  • Loading branch information
Andi Kleen authored and Linus Torvalds committed May 21, 2007
1 parent f6b84af commit 12a3856
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 21124a82bb82e100369846ff2044dd5ea65fc934
refs/heads/master: c12ceb766eb5ac975c1145d51236fcdcf81a6578
4 changes: 4 additions & 0 deletions trunk/arch/i386/kernel/cpu/amd.c
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,10 @@ static void __cpuinit init_amd(struct cpuinfo_x86 *c)

if (c->x86 == 0x10 && !force_mwait)
clear_bit(X86_FEATURE_MWAIT, c->x86_capability);

/* K6s reports MCEs but don't actually have all the MSRs */
if (c->x86 < 6)
clear_bit(X86_FEATURE_MCE, c->x86_capability);
}

static unsigned int __cpuinit amd_size_cache(struct cpuinfo_x86 * c, unsigned int size)
Expand Down
6 changes: 3 additions & 3 deletions trunk/arch/i386/kernel/cpu/mcheck/k7.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@ void amd_mcheck_init(struct cpuinfo_x86 *c)
u32 l, h;
int i;

machine_check_vector = k7_machine_check;
wmb();

if (!cpu_has(c, X86_FEATURE_MCE))
return;

machine_check_vector = k7_machine_check;
wmb();

printk (KERN_INFO "Intel machine check architecture supported.\n");
rdmsr (MSR_IA32_MCG_CAP, l, h);
if (l & (1<<8)) /* Control register present ? */
Expand Down

0 comments on commit 12a3856

Please sign in to comment.