Skip to content

Commit b329f5d

Browse files
Maxim LevitskyPeter Zijlstra
authored andcommitted
perf/x86/intel/lbr: Use setup_clear_cpu_cap() instead of clear_cpu_cap()
clear_cpu_cap(&boot_cpu_data) is very similar to setup_clear_cpu_cap() except that the latter also sets a bit in 'cpu_caps_cleared' which later clears the same cap in secondary cpus, which is likely what is meant here. Fixes: 47125db ("perf/x86/intel/lbr: Support Architectural LBR") Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Kan Liang <kan.liang@linux.intel.com> Link: https://lkml.kernel.org/r/20220718141123.136106-2-mlevitsk@redhat.com
1 parent 883bbbf commit b329f5d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • arch/x86/events/intel

arch/x86/events/intel/lbr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1596,7 +1596,7 @@ void __init intel_pmu_arch_lbr_init(void)
15961596
return;
15971597

15981598
clear_arch_lbr:
1599-
clear_cpu_cap(&boot_cpu_data, X86_FEATURE_ARCH_LBR);
1599+
setup_clear_cpu_cap(X86_FEATURE_ARCH_LBR);
16001600
}
16011601

16021602
/**

0 commit comments

Comments
 (0)