]> asedeno.scripts.mit.edu Git - linux.git/commit
MIPS: perf: More robustly probe for the presence of per-tc counters
authorMatt Redfearn <matt.redfearn@mips.com>
Fri, 20 Apr 2018 10:23:04 +0000 (11:23 +0100)
committerJames Hogan <jhogan@kernel.org>
Tue, 15 May 2018 14:16:16 +0000 (15:16 +0100)
commit800fb71281ca2ed5c8a7299e10ebc0de2f61cdda
treef0ac8f30ad775d4cc2000b75a08240a637828f81
parent8270ab48e67333f760b3bef507c1524c7a06c699
MIPS: perf: More robustly probe for the presence of per-tc counters

The presence of per TC performance counters is now detected by
cpu-probe.c and indicated by MIPS_CPU_MT_PER_TC_PERF_COUNTERS in
cpu_data. Switch detection of the feature to use this new flag rather
than blindly testing the implementation specific config7 register with a
magic number.

Signed-off-by: Matt Redfearn <matt.redfearn@mips.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Cc: Maciej W. Rozycki <macro@mips.com>
Cc: Paul Burton <paul.burton@mips.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Robert Richter <rric@kernel.org>
Cc: linux-mips@linux-mips.org
Cc: oprofile-list@lists.sf.net
Patchwork: https://patchwork.linux-mips.org/patch/19142/
Signed-off-by: James Hogan <jhogan@kernel.org>
arch/mips/include/asm/cpu-features.h
arch/mips/kernel/perf_event_mipsxx.c
arch/mips/oprofile/op_model_mipsxx.c