]> git.baikalelectronics.ru Git - kernel.git/commit
perf/x86/intel: Name the global status bit in NMI handler
authorKan Liang <kan.liang@linux.intel.com>
Thu, 23 Jul 2020 17:11:05 +0000 (10:11 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 18 Aug 2020 14:34:34 +0000 (16:34 +0200)
commit1f30d711193ac3f5e090b63a02f92f8d5f76d056
tree16e4c0a3a7465dc1b86f1f907d59a5c17f9f8662
parent09b44d283aabb849ead160189e41b245a75946a5
perf/x86/intel: Name the global status bit in NMI handler

Magic numbers are used in the current NMI handler for the global status
bit. Use a meaningful name to replace the magic numbers to improve the
readability of the code.

Remove a Tab for all GLOBAL_STATUS_* and INTEL_PMC_IDX_FIXED_BTS macros
to reduce the length of the line.

Suggested-by: Peter Zijlstra <peterz@infradead.org>
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-3-kan.liang@linux.intel.com
arch/x86/events/intel/core.c
arch/x86/include/asm/perf_event.h