x86/msr: Harmonize the prototype and definition of do_trace_rdpmc()
authorIngo Molnar <mingo@kernel.org>
Wed, 9 Apr 2025 20:28:52 +0000 (22:28 +0200)
committerIngo Molnar <mingo@kernel.org>
Thu, 10 Apr 2025 09:58:13 +0000 (11:58 +0200)
commitd8f8aad698b85f197c877ec51f8585e2b2abb195
tree658725241994f2ea31b175791f266129f25ff3e7
parentcd905826cbc833b7494573998bd1c407dfa7924f
x86/msr: Harmonize the prototype and definition of do_trace_rdpmc()

In <asm/msr.h> the first parameter of do_trace_rdpmc() is named 'msr':

   extern void do_trace_rdpmc(unsigned int msr, u64 val, int failed);

But in the definition it's 'counter':

   void do_trace_rdpmc(unsigned counter, u64 val, int failed)

Use 'msr' in both cases, and change the type to u32.

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>
arch/x86/include/asm/msr.h
arch/x86/lib/msr.c