Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 113333
b: refs/heads/master
c: 8343ef2
h: refs/heads/master
i:
  113331: f315b1f
v: v3
  • Loading branch information
Dmitry Adamushko authored and Ingo Molnar committed Aug 20, 2008
1 parent a8bee30 commit c5d56c4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 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: 636a31781684d0f49208aa163f1a5a3a74210eb4
refs/heads/master: 8343ef2437c599d30568e6b5a257a40bf2f4902b
10 changes: 6 additions & 4 deletions trunk/arch/x86/kernel/microcode_amd.c
Original file line number Diff line number Diff line change
Expand Up @@ -500,13 +500,15 @@ static struct microcode_ops microcode_amd_ops = {

static int __init microcode_amd_module_init(void)
{
struct cpuinfo_x86 *c = &cpu_data(get_cpu());
struct cpuinfo_x86 *c = &cpu_data(0);

equiv_cpu_table = NULL;
if (c->x86_vendor == X86_VENDOR_AMD)
return microcode_init(&microcode_amd_ops, THIS_MODULE);
else
if (c->x86_vendor != X86_VENDOR_AMD) {
printk(KERN_ERR "microcode: CPU platform is not AMD-capable\n");
return -ENODEV;
}

return microcode_init(&microcode_amd_ops, THIS_MODULE);
}

static void __exit microcode_amd_module_exit(void)
Expand Down
10 changes: 6 additions & 4 deletions trunk/arch/x86/kernel/microcode_intel.c
Original file line number Diff line number Diff line change
Expand Up @@ -531,12 +531,14 @@ static struct microcode_ops microcode_intel_ops = {

static int __init microcode_intel_module_init(void)
{
struct cpuinfo_x86 *c = &cpu_data(get_cpu());
struct cpuinfo_x86 *c = &cpu_data(0);

if (c->x86_vendor == X86_VENDOR_INTEL)
return microcode_init(&microcode_intel_ops, THIS_MODULE);
else
if (c->x86_vendor != X86_VENDOR_INTEL) {
printk(KERN_ERR "microcode: CPU platform is not Intel-capable\n");
return -ENODEV;
}

return microcode_init(&microcode_intel_ops, THIS_MODULE);
}

static void __exit microcode_intel_module_exit(void)
Expand Down

0 comments on commit c5d56c4

Please sign in to comment.