]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
x86/intel: Move mcu_opt_ctrl_* into __ro_after_init
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 30 Apr 2025 15:18:13 +0000 (16:18 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 30 Apr 2025 16:02:09 +0000 (17:02 +0100)
They're only modified by set_in_mcu_opt_ctrl() which is an __init function.

No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/cpu/intel.c

index 63f65ea5b0488970d4485d637e535167740a1b84..12c3ff65e02fca403e35acb73490256683c4334a 100644 (file)
@@ -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)
 {