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 <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Reviewed-by: Kan Liang <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 883bbbf commit b329f5d

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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)