diff options
| author | Josh Poimboeuf <[email protected]> | 2024-04-12 18:10:33 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2024-04-14 09:10:05 +0000 |
| commit | 69129794d94c544810e68b2b4eaa7e44063f9bf2 (patch) | |
| tree | 4ed635a85d2ed5148f54e049ddf6ab4d721a4431 /tools/perf/scripts/python/sctop.py | |
| parent | x86/cpu/amd: Move TOPOEXT enablement into the topology parser (diff) | |
| download | kernel-69129794d94c544810e68b2b4eaa7e44063f9bf2.tar.gz kernel-69129794d94c544810e68b2b4eaa7e44063f9bf2.zip | |
x86/bugs: Fix BHI retpoline check
Confusingly, X86_FEATURE_RETPOLINE doesn't mean retpolines are enabled,
as it also includes the original "AMD retpoline" which isn't a retpoline
at all.
Also replace cpu_feature_enabled() with boot_cpu_has() because this is
before alternatives are patched and cpu_feature_enabled()'s fallback
path is slower than plain old boot_cpu_has().
Fixes: ec9404e40e8f ("x86/bhi: Add BHI mitigation knob")
Signed-off-by: Josh Poimboeuf <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Reviewed-by: Pawan Gupta <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Linus Torvalds <[email protected]>
Link: https://lore.kernel.org/r/ad3807424a3953f0323c011a643405619f2a4927.1712944776.git.jpoimboe@kernel.org
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions
