diff options
author | Xin Li (Intel) <xin@zytor.com> | 2025-04-27 12:20:17 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2025-05-02 11:26:56 +0300 |
commit | 795ada52875fe61469f635f226d19a4cd733d1e8 (patch) | |
tree | 254898b9bd47e620c200935fec32f307409856cf /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 7d9ccde56bc023f9a968db537963a029aa41d902 (diff) | |
download | linux-795ada52875fe61469f635f226d19a4cd733d1e8.tar.xz |
x86/msr: Convert the rdpmc() macro to an __always_inline function
Functions offer type safety and better readability compared to macros.
Additionally, always inline functions can match the performance of
macros. Converting the rdpmc() macro into an always inline function
is simple and straightforward, so just make the change.
Moreover, the read result is now the returned value, further enhancing
readability.
Signed-off-by: Xin Li (Intel) <xin@zytor.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Dave Hansen <dave.hansen@linux.intel.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Juergen Gross <jgross@suse.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Kees Cook <keescook@chromium.org>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Uros Bizjak <ubizjak@gmail.com>
Link: https://lore.kernel.org/r/20250427092027.1598740-6-xin@zytor.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions