Skip to content

Commit 8a28b02

Browse files
aeglbp3tk0v
authored andcommitted
x86/bugs: Switch to new Intel CPU model defines
New CPU #defines encode vendor and family as well as model. Signed-off-by: Tony Luck <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Acked-by: Josh Poimboeuf <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent f055b62 commit 8a28b02

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

arch/x86/kernel/cpu/bugs.c

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#include <asm/msr.h>
2727
#include <asm/vmx.h>
2828
#include <asm/paravirt.h>
29-
#include <asm/intel-family.h>
29+
#include <asm/cpu_device_id.h>
3030
#include <asm/e820/api.h>
3131
#include <asm/hypervisor.h>
3232
#include <asm/tlbflush.h>
@@ -2390,20 +2390,20 @@ static void override_cache_bits(struct cpuinfo_x86 *c)
23902390
if (c->x86 != 6)
23912391
return;
23922392

2393-
switch (c->x86_model) {
2394-
case INTEL_FAM6_NEHALEM:
2395-
case INTEL_FAM6_WESTMERE:
2396-
case INTEL_FAM6_SANDYBRIDGE:
2397-
case INTEL_FAM6_IVYBRIDGE:
2398-
case INTEL_FAM6_HASWELL:
2399-
case INTEL_FAM6_HASWELL_L:
2400-
case INTEL_FAM6_HASWELL_G:
2401-
case INTEL_FAM6_BROADWELL:
2402-
case INTEL_FAM6_BROADWELL_G:
2403-
case INTEL_FAM6_SKYLAKE_L:
2404-
case INTEL_FAM6_SKYLAKE:
2405-
case INTEL_FAM6_KABYLAKE_L:
2406-
case INTEL_FAM6_KABYLAKE:
2393+
switch (c->x86_vfm) {
2394+
case INTEL_NEHALEM:
2395+
case INTEL_WESTMERE:
2396+
case INTEL_SANDYBRIDGE:
2397+
case INTEL_IVYBRIDGE:
2398+
case INTEL_HASWELL:
2399+
case INTEL_HASWELL_L:
2400+
case INTEL_HASWELL_G:
2401+
case INTEL_BROADWELL:
2402+
case INTEL_BROADWELL_G:
2403+
case INTEL_SKYLAKE_L:
2404+
case INTEL_SKYLAKE:
2405+
case INTEL_KABYLAKE_L:
2406+
case INTEL_KABYLAKE:
24072407
if (c->x86_cache_bits < 44)
24082408
c->x86_cache_bits = 44;
24092409
break;

0 commit comments

Comments
 (0)