aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/c++/clang.cpp
diff options
context:
space:
mode:
authorPawan Gupta <[email protected]>2022-03-10 22:00:59 +0000
committerBorislav Petkov <[email protected]>2022-04-11 07:54:34 +0000
commit258f3b8c3210b03386e4ad92b4bd8652b5c1beb3 (patch)
tree0d8a799381fb64fded33a524d4fa7cc077f57990 /tools/perf/util/c++/clang.cpp
parentLinux 5.18-rc2 (diff)
downloadkernel-258f3b8c3210b03386e4ad92b4bd8652b5c1beb3.tar.gz
kernel-258f3b8c3210b03386e4ad92b4bd8652b5c1beb3.zip
x86/tsx: Use MSR_TSX_CTRL to clear CPUID bits
tsx_clear_cpuid() uses MSR_TSX_FORCE_ABORT to clear CPUID.RTM and CPUID.HLE. Not all CPUs support MSR_TSX_FORCE_ABORT, alternatively use MSR_IA32_TSX_CTRL when supported. [ bp: Document how and why TSX gets disabled. ] Fixes: 293649307ef9 ("x86/tsx: Clear CPUID bits when TSX always force aborts") Reported-by: kernel test robot <[email protected]> Signed-off-by: Pawan Gupta <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Tested-by: Neelima Krishnan <[email protected]> Cc: <[email protected]> Link: https://lore.kernel.org/r/5b323e77e251a9c8bcdda498c5cc0095be1e1d3c.1646943780.git.pawan.kumar.gupta@linux.intel.com
Diffstat (limited to 'tools/perf/util/c++/clang.cpp')
0 files changed, 0 insertions, 0 deletions