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 <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
This commit is contained in:
Andrew Cooper committed 2025-04-30 17:02:09 +01:00
1 parent a1ce987411
commit 88b4ea080c
1 file changed
+2 -2
+2 -2
View 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)
{
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.