perf/x86: Move Nehalem PEBS code to flag
authorAndi Kleen <ak@linux.intel.com>
Wed, 16 Aug 2017 22:21:53 +0000 (15:21 -0700)
committerIngo Molnar <mingo@kernel.org>
Fri, 25 Aug 2017 09:04:16 +0000 (11:04 +0200)
commit95298355143f9765f0d40ed57dce7fa6571cc623
tree2347a3cd90905df183400e73755fbcca1800a194
parentd9a50b0256f06bd39a1bed1ba40baec37c356b11
perf/x86: Move Nehalem PEBS code to flag

Minor cleanup: use an explicit x86_pmu flag to handle the
missing Lock / TLB information on Nehalem, instead of always
checking the model number for each PEBS sample.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: acme@kernel.org
Cc: jolsa@kernel.org
Link: http://lkml.kernel.org/r/20170816222156.19953-2-andi@firstfloor.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/events/intel/core.c
arch/x86/events/intel/ds.c
arch/x86/events/perf_event.h