From 3eaa50e1e255ec261c757b9eea811ef3bac10d1e Mon Sep 17 00:00:00 2001 From: "Borislav Petkov (AMD)" Date: Fri, 19 Jun 2026 18:50:41 -0700 Subject: 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) Reviewed-by: Nikolay Borisov Link: https://patch.msgid.link/20260620015041.336288-1-bp@kernel.org --- drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/platform/x86/intel') 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); -- cgit v1.2.3