]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf/x86: Use macros to replace magic numbers in attr_rdpmc
authorDapeng Mi <dapeng1.mi@linux.intel.com>
Wed, 14 Jan 2026 01:17:49 +0000 (09:17 +0800)
committerPeter Zijlstra <peterz@infradead.org>
Thu, 15 Jan 2026 09:04:27 +0000 (10:04 +0100)
commit8c74e4e3e0596950554962229582260f1501d899
treeafc42d28f8d01f4f8e7ceab89a0c64b08cc304a4
parentc847a208f43bfeb56943f2ca6fe2baf1db9dee7a
perf/x86: Use macros to replace magic numbers in attr_rdpmc

Replace magic numbers in attr_rdpmc with macros to improve readability
and make their meanings clearer for users.

Signed-off-by: Dapeng Mi <dapeng1.mi@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://patch.msgid.link/20260114011750.350569-7-dapeng1.mi@linux.intel.com
arch/x86/events/core.c
arch/x86/events/intel/p6.c
arch/x86/events/perf_event.h