|
@@ -82,11 +82,6 @@ static int collect_cpu_info_amd(int cpu, struct cpu_signature *csig)
|
|
|
{
|
|
|
struct cpuinfo_x86 *c = &cpu_data(cpu);
|
|
|
|
|
|
- if (c->x86_vendor != X86_VENDOR_AMD || c->x86 < 0x10) {
|
|
|
- pr_warning("CPU%d: family %d not supported\n", cpu, c->x86);
|
|
|
- return -1;
|
|
|
- }
|
|
|
-
|
|
|
csig->rev = c->microcode;
|
|
|
pr_info("CPU%d: patch_level=0x%08x\n", cpu, csig->rev);
|
|
|
|
|
@@ -380,6 +375,13 @@ static struct microcode_ops microcode_amd_ops = {
|
|
|
|
|
|
struct microcode_ops * __init init_amd_microcode(void)
|
|
|
{
|
|
|
+ struct cpuinfo_x86 *c = &cpu_data(0);
|
|
|
+
|
|
|
+ if (c->x86_vendor != X86_VENDOR_AMD || c->x86 < 0x10) {
|
|
|
+ pr_warning("AMD CPU family 0x%x not supported\n", c->x86);
|
|
|
+ return NULL;
|
|
|
+ }
|
|
|
+
|
|
|
patch = (void *)get_zeroed_page(GFP_KERNEL);
|
|
|
if (!patch)
|
|
|
return NULL;
|