Skip to content

Commit 0011a51

Browse files
aeglhansendc
authored andcommitted
perf/x86/lbr: Switch to new Intel CPU model defines
New CPU #defines encode vendor and family as well as model. Signed-off-by: Tony Luck <tony.luck@intel.com> Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com> Link: https://lore.kernel.org/all/20240424181500.41519-1-tony.luck%40intel.com
1 parent 5ee8009 commit 0011a51

File tree

1 file changed

+2
-1
lines changed
  • arch/x86/events/intel

1 file changed

+2
-1
lines changed

arch/x86/events/intel/lbr.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#include <linux/perf_event.h>
33
#include <linux/types.h>
44

5+
#include <asm/cpu_device_id.h>
56
#include <asm/perf_event.h>
67
#include <asm/msr.h>
78

@@ -1457,7 +1458,7 @@ void __init intel_pmu_lbr_init_atom(void)
14571458
* to have an operational LBR which can freeze
14581459
* on PMU interrupt
14591460
*/
1460-
if (boot_cpu_data.x86_model == 28
1461+
if (boot_cpu_data.x86_vfm == INTEL_ATOM_BONNELL
14611462
&& boot_cpu_data.x86_stepping < 10) {
14621463
pr_cont("LBR disabled due to erratum");
14631464
return;

0 commit comments

Comments
 (0)