summaryrefslogtreecommitdiff
path: root/drivers/platform
diff options
context:
space:
mode:
authorBorislav Petkov (AMD) <bp@alien8.de>2026-06-19 18:50:41 -0700
committerBorislav Petkov (AMD) <bp@alien8.de>2026-07-06 21:34:26 -0700
commit3eaa50e1e255ec261c757b9eea811ef3bac10d1e (patch)
treebf0083c895d6cfce97f943096f426ff600eda42a /drivers/platform
parent8cdeaa50eae8dad34885515f62559ee83e7e8dda (diff)
downloadlinux-next-3eaa50e1e255ec261c757b9eea811ef3bac10d1e.tar.gz
linux-next-3eaa50e1e255ec261c757b9eea811ef3bac10d1e.zip
x86/cpu: Hide and rename static_cpu_has()
cpu_feature_enabled() is the one to use to test feature flags so hide the static thing which doesn't pay attention to disabled mask bits anyway. Use the following command to do the replacement: $ git grep --files-with-matches -w static_cpu_has -- ':(exclude)*cpufeature.h' \ | xargs sed -i 's/static_cpu_has(/cpu_feature_enabled\(/g' There should be no functional changes resulting from this. Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Reviewed-by: Nikolay Borisov <nik.borisov@suse.com> Link: https://patch.msgid.link/20260620015041.336288-1-bp@kernel.org
Diffstat (limited to 'drivers/platform')
-rw-r--r--drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c b/drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c
index 24334ae70d82..5ded0e25b6c7 100644
--- a/drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c
+++ b/drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c
@@ -558,7 +558,7 @@ static bool disable_dynamic_sst_features(void)
{
u64 value;
- if (!static_cpu_has(X86_FEATURE_HWP))
+ if (!cpu_feature_enabled(X86_FEATURE_HWP))
return true;
rdmsrq(MSR_PM_ENABLE, value);