]> git.baikalelectronics.ru Git - kernel.git/commit
perf/x86: Add a macro for RDPMC offset of fixed counters
authorKan Liang <kan.liang@linux.intel.com>
Thu, 23 Jul 2020 17:11:12 +0000 (10:11 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 18 Aug 2020 14:34:36 +0000 (16:34 +0200)
commit18625f414547a97d4a05f593bd46b13d1694d3c1
tree86090dd85afbbac4faf9dd09b1a79325037a5cb5
parent1f1aa35ab4e2de56f27150e797608012fa1bf98d
perf/x86: Add a macro for RDPMC offset of fixed counters

The RDPMC base offset of fixed counters is hard-code. Use a meaningful
name to replace the magic number to improve the readability of the code.

Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20200723171117.9918-10-kan.liang@linux.intel.com
arch/x86/events/core.c
arch/x86/include/asm/perf_event.h