Skip to content

Commit baad919

Browse files
author
Ingo Molnar
committed
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 <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Acked-by: Mario Limonciello <[email protected]> Cc: "H. Peter Anvin" <[email protected]> Cc: Juergen Gross <[email protected]> Cc: Dave Hansen <[email protected]> Cc: Xin Li <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 1adf711 commit baad919

File tree

1 file changed

+1
-0
lines changed
  • arch/x86/include/asm

1 file changed

+1
-0
lines changed

arch/x86/include/asm/msr.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ static inline int wrmsr_safe_regs_on_cpu(unsigned int cpu, u32 regs[8])
329329
/* Compatibility wrappers: */
330330
#define rdmsrl(msr, val) rdmsrq(msr, val)
331331
#define wrmsrl(msr, val) wrmsrq(msr, val)
332+
#define rdmsrl_on_cpu(cpu, msr, q) rdmsrq_on_cpu(cpu, msr, q)
332333

333334
#endif /* __ASSEMBLER__ */
334335
#endif /* _ASM_X86_MSR_H */

0 commit comments

Comments
 (0)