diff options
author | Ingo Molnar <mingo@kernel.org> | 2025-04-09 22:28:51 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2025-04-10 11:58:07 +0200 |
commit | cd905826cbc833b7494573998bd1c407dfa7924f (patch) | |
tree | 10ece3fa52d153b6bd6dee7d82aa11a741fffd3c | |
parent | 73bd1e01e98e71715aa060d40b8273ff6434e8d7 (diff) |
x86/msr: Use u64 in rdmsrl_safe() and paravirt_read_pmc()
The paravirt_read_pmc() result is in fact only loaded into an u64 variable.
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Juergen Gross <jgross@suse.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Dave Hansen <dave.hansen@intel.com>
Cc: Xin Li <xin@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | arch/x86/include/asm/paravirt.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/include/asm/paravirt.h b/arch/x86/include/asm/paravirt.h index c4c23190925c..c270ca050781 100644 --- a/arch/x86/include/asm/paravirt.h +++ b/arch/x86/include/asm/paravirt.h @@ -231,7 +231,7 @@ static inline void wrmsrl(unsigned msr, u64 val) _err; \ }) -static inline int rdmsrl_safe(unsigned msr, unsigned long long *p) +static inline int rdmsrl_safe(unsigned msr, u64 *p) { int err; @@ -239,7 +239,7 @@ static inline int rdmsrl_safe(unsigned msr, unsigned long long *p) return err; } -static inline unsigned long long paravirt_read_pmc(int counter) +static inline u64 paravirt_read_pmc(int counter) { return PVOP_CALL1(u64, cpu.read_pmc, counter); } |