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)
commit60a2a271cf05cf046c522e1d7f62116b4bcb32a2
tree16e4c0a3a7465dc1b86f1f907d59a5c17f9f8662
parent75608cb02ea5dd997990e2998eca3670cb71a18c
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