|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen stable-4.20] x86/HWP: adjust feature_hdc's section annotation
commit 040e8cc14d7cbce4939bd08c3e6cfea7e60dee67
Author: Jan Beulich <jbeulich@xxxxxxxx>
AuthorDate: Tue Oct 21 15:20:55 2025 +0200
Commit: Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Tue Oct 21 15:20:55 2025 +0200
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 <jbeulich@xxxxxxxx>
Acked-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
Reviewed-by: Jason Andryuk <jason.andryuk@xxxxxxx>
master commit: 4676e09b3c3b2750aef3d6ec7e43b632d4800ab9
master date: 2025-10-13 10:41:35 +0200
---
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 59b57a4cef..1380989f30 100644
--- a/xen/arch/x86/acpi/cpufreq/hwp.c
+++ b/xen/arch/x86/acpi/cpufreq/hwp.c
@@ -17,7 +17,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;
--
generated by git-patchbot for /home/xen/git/xen.git#stable-4.20
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |