From: Andrew Cooper Date: Wed, 30 Apr 2025 15:18:13 +0000 (+0100) Subject: x86/intel: Move mcu_opt_ctrl_* into __ro_after_init X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=88b4ea080cd2ee502b08754ed7adbd7ee5e30a89;p=people%2Fandrewcoop%2Fxen.git x86/intel: Move mcu_opt_ctrl_* into __ro_after_init They're only modified by set_in_mcu_opt_ctrl() which is an __init function. No functional change. Signed-off-by: Andrew Cooper Reviewed-by: Jan Beulich --- diff --git a/xen/arch/x86/cpu/intel.c b/xen/arch/x86/cpu/intel.c index 63f65ea5b0..12c3ff65e0 100644 --- a/xen/arch/x86/cpu/intel.c +++ b/xen/arch/x86/cpu/intel.c @@ -21,8 +21,8 @@ * MSR_MCU_OPT_CTRL is a collection of unrelated functionality, with separate * enablement requirements, but which want to be consistent across the system. */ -static uint32_t __read_mostly mcu_opt_ctrl_mask; -static uint32_t __read_mostly mcu_opt_ctrl_val; +static uint32_t __ro_after_init mcu_opt_ctrl_mask; +static uint32_t __ro_after_init mcu_opt_ctrl_val; void update_mcu_opt_ctrl(void) {