diff options
author | Borislav Petkov <bp@suse.de> | 2022-11-06 22:24:08 +0100 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2022-11-27 23:00:45 +0100 |
commit | 97fa21f65c3eb5bbab9b4734bed37fd624cddd86 (patch) | |
tree | 878ddd74024e648d6d697012e91a5d35d9c56e82 /arch/x86/kernel/cpu/resctrl/core.c | |
parent | 2d4daa549c17b6ba4845a751c7a78d3b2419d78f (diff) | |
download | linux-97fa21f65c3eb5bbab9b4734bed37fd624cddd86.tar.gz linux-97fa21f65c3eb5bbab9b4734bed37fd624cddd86.tar.bz2 linux-97fa21f65c3eb5bbab9b4734bed37fd624cddd86.zip |
x86/resctrl: Move MSR defines into msr-index.h
msr-index.h should contain all MSRs for easier grepping for MSR numbers
when dealing with unchecked MSR access warnings, for example.
Move the resctrl ones. Prefix IA32_PQR_ASSOC with "MSR_" while at it.
No functional changes.
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20221106212923.20699-1-bp@alien8.de
Diffstat (limited to 'arch/x86/kernel/cpu/resctrl/core.c')
-rw-r--r-- | arch/x86/kernel/cpu/resctrl/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/resctrl/core.c b/arch/x86/kernel/cpu/resctrl/core.c index 03cfbf0fe000..c98e52ff5f20 100644 --- a/arch/x86/kernel/cpu/resctrl/core.c +++ b/arch/x86/kernel/cpu/resctrl/core.c @@ -575,7 +575,7 @@ static void clear_closid_rmid(int cpu) state->default_rmid = 0; state->cur_closid = 0; state->cur_rmid = 0; - wrmsr(IA32_PQR_ASSOC, 0, 0); + wrmsr(MSR_IA32_PQR_ASSOC, 0, 0); } static int resctrl_online_cpu(unsigned int cpu) |