Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 257250
b: refs/heads/master
c: 3a97fc3
h: refs/heads/master
v: v3
  • Loading branch information
Hidetoshi Seto authored and Borislav Petkov committed Jun 16, 2011
1 parent fbe876b commit 58075de
Show file tree
Hide file tree
Showing 2 changed files with 10 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: b8325c5b110d7ff460b79588e7e9afdcc73d5c3c
refs/heads/master: 3a97fc34130326da87b20de5d0259c35406707ce
12 changes: 9 additions & 3 deletions trunk/arch/x86/kernel/cpu/mcheck/mce.c
Original file line number Diff line number Diff line change
Expand Up @@ -1332,18 +1332,23 @@ static int __cpuinit __mcheck_cpu_apply_quirks(struct cpuinfo_x86 *c)
return 0;
}

static void __cpuinit __mcheck_cpu_ancient_init(struct cpuinfo_x86 *c)
static int __cpuinit __mcheck_cpu_ancient_init(struct cpuinfo_x86 *c)
{
if (c->x86 != 5)
return;
return 0;

switch (c->x86_vendor) {
case X86_VENDOR_INTEL:
intel_p5_mcheck_init(c);
return 1;
break;
case X86_VENDOR_CENTAUR:
winchip_mcheck_init(c);
return 1;
break;
}

return 0;
}

static void __mcheck_cpu_init_vendor(struct cpuinfo_x86 *c)
Expand Down Expand Up @@ -1397,7 +1402,8 @@ void __cpuinit mcheck_cpu_init(struct cpuinfo_x86 *c)
if (mce_disabled)
return;

__mcheck_cpu_ancient_init(c);
if (__mcheck_cpu_ancient_init(c))
return;

if (!mce_available(c))
return;
Expand Down

0 comments on commit 58075de

Please sign in to comment.