From: Ingo Molnar Date: Thu, 15 May 2025 15:49:16 +0000 (+0200) Subject: x86/msr: Add rdmsrl_on_cpu() compatibility wrapper X-Git-Tag: v6.16-rc1~195^2~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=baad9190e6465fdbe458f59cf04c2b2032ec4797;p=thirdparty%2Fkernel%2Flinux.git x86/msr: Add rdmsrl_on_cpu() compatibility wrapper Add a simple rdmsrl_on_cpu() compatibility wrapper for rdmsrq_on_cpu(), to make life in -next easier, where the PM tree recently grew more uses of the old API. Reported-by: Stephen Rothwell Signed-off-by: Ingo Molnar Acked-by: Mario Limonciello Cc: "H. Peter Anvin" Cc: Juergen Gross Cc: Dave Hansen Cc: Xin Li Link: https://lore.kernel.org/r/20250512145517.6e0666e3@canb.auug.org.au --- diff --git a/arch/x86/include/asm/msr.h b/arch/x86/include/asm/msr.h index a9ce56fc8785a..4096b8af4ba76 100644 --- a/arch/x86/include/asm/msr.h +++ b/arch/x86/include/asm/msr.h @@ -329,6 +329,7 @@ static inline int wrmsr_safe_regs_on_cpu(unsigned int cpu, u32 regs[8]) /* Compatibility wrappers: */ #define rdmsrl(msr, val) rdmsrq(msr, val) #define wrmsrl(msr, val) wrmsrq(msr, val) +#define rdmsrl_on_cpu(cpu, msr, q) rdmsrq_on_cpu(cpu, msr, q) #endif /* __ASSEMBLER__ */ #endif /* _ASM_X86_MSR_H */