From 4676e09b3c3b2750aef3d6ec7e43b632d4800ab9 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Mon, 13 Oct 2025 10:41:35 +0200 Subject: [PATCH] x86/HWP: adjust feature_hdc's section annotation The variable can be cleared (set to false) by a non-init function's error path (hwp_init_msrs()). Fixes: 99c4570f8209 ("cpufreq: Add Hardware P-State (HWP) driver") Signed-off-by: Jan Beulich Acked-by: Andrew Cooper Reviewed-by: Jason Andryuk Release-Acked-by: Oleksii Kurochko --- xen/arch/x86/acpi/cpufreq/hwp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/acpi/cpufreq/hwp.c b/xen/arch/x86/acpi/cpufreq/hwp.c index 240491c96a..e801acd7a7 100644 --- a/xen/arch/x86/acpi/cpufreq/hwp.c +++ b/xen/arch/x86/acpi/cpufreq/hwp.c @@ -21,7 +21,7 @@ static bool __ro_after_init hwp_in_use; static bool __ro_after_init feature_hwp_notification; static bool __ro_after_init feature_hwp_activity_window; -static bool __ro_after_init feature_hdc; +static bool __read_mostly feature_hdc; static bool __ro_after_init opt_cpufreq_hdc = true;