Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 288855
b: refs/heads/master
c: 78ff123
h: refs/heads/master
i:
  288853: 407618a
  288851: ff1824e
  288847: 283d281
v: v3
  • Loading branch information
Andi Kleen authored and Greg Kroah-Hartman committed Jan 27, 2012
1 parent 093946a commit d7f25bf
Show file tree
Hide file tree
Showing 2 changed files with 16 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: fa8031aefec0cf7ea6c2387c93610d99d9659aa2
refs/heads/master: 78ff123b05fb15beb1ad670372eea0d299d0b8af
15 changes: 15 additions & 0 deletions trunk/arch/x86/kernel/microcode_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@

#include <asm/microcode.h>
#include <asm/processor.h>
#include <asm/cpu_device_id.h>

MODULE_DESCRIPTION("Microcode Update Driver");
MODULE_AUTHOR("Tigran Aivazian <tigran@aivazian.fsnet.co.uk>");
Expand Down Expand Up @@ -504,6 +505,20 @@ static struct notifier_block __refdata mc_cpu_notifier = {
.notifier_call = mc_cpu_callback,
};

#ifdef MODULE
/* Autoload on Intel and AMD systems */
static const struct x86_cpu_id microcode_id[] = {
#ifdef CONFIG_MICROCODE_INTEL
{ X86_VENDOR_INTEL, X86_FAMILY_ANY, X86_MODEL_ANY, },
#endif
#ifdef CONFIG_MICROCODE_AMD
{ X86_VENDOR_AMD, X86_FAMILY_ANY, X86_MODEL_ANY, },
#endif
{}
};
MODULE_DEVICE_TABLE(x86cpu, microcode_id);
#endif

static int __init microcode_init(void)
{
struct cpuinfo_x86 *c = &cpu_data(0);
Expand Down

0 comments on commit d7f25bf

Please sign in to comment.