Skip to content

Commit e5dcb58

Browse files
daviddaneyralfbaechle
authored andcommitted
MIPS: perf: Reorganize contents of perf support files.
The contents of arch/mips/kernel/perf_event.c and arch/mips/kernel/perf_event_mipsxx.c were divided in a seemingly ad hoc manner, with the first including the second. I moved all the hardware counter support code to perf_event_mipsxx.c and removed the gating #ifdefs to the Kconfig and Makefile. Now perf_event.c contains only the callchain support, everything else is in perf_event_mipsxx.c There are no code changes, only moving of functions from one file to the other, or removing empty unneeded functions. Signed-off-by: David Daney <david.daney@cavium.com> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Paul Mackerras <paulus@samba.org> Cc: Ingo Molnar <mingo@elte.hu> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Dezhong Diao <dediao@cisco.com> Cc: Gabor Juhos <juhosg@openwrt.org> Cc: Deng-Cheng Zhu <dengcheng.zhu@gmail.com> To: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/2791/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent 4409af3 commit e5dcb58

4 files changed

Lines changed: 532 additions & 520 deletions

File tree

‎arch/mips/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2101,7 +2101,7 @@ config NODES_SHIFT
21012101

21022102
config HW_PERF_EVENTS
21032103
bool "Enable hardware performance counter support for perf events"
2104-
depends on PERF_EVENTS && !MIPS_MT_SMTC && OPROFILE=n && CPU_MIPS32
2104+
depends on PERF_EVENTS && !MIPS_MT_SMTC && OPROFILE=n && (CPU_MIPS32 || CPU_MIPS64 || CPU_R10000 || CPU_SB1)
21052105
default y
21062106
help
21072107
Enable hardware performance counter support for perf events. If

‎arch/mips/kernel/Makefile‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ obj-y += cpu-probe.o branch.o entry.o genex.o irq.o process.o \
1111
ifdef CONFIG_FUNCTION_TRACER
1212
CFLAGS_REMOVE_ftrace.o = -pg
1313
CFLAGS_REMOVE_early_printk.o = -pg
14+
CFLAGS_REMOVE_perf_event.o = -pg
15+
CFLAGS_REMOVE_perf_event_mipsxx.o = -pg
1416
endif
1517

1618
obj-$(CONFIG_CEVT_BCM1480) += cevt-bcm1480.o
@@ -106,7 +108,8 @@ obj-$(CONFIG_HAVE_STD_PC_SERIAL_PORT) += 8250-platform.o
106108

107109
obj-$(CONFIG_MIPS_CPUFREQ) += cpufreq/
108110

109-
obj-$(CONFIG_HW_PERF_EVENTS) += perf_event.o
111+
obj-$(CONFIG_PERF_EVENTS) += perf_event.o
112+
obj-$(CONFIG_HW_PERF_EVENTS) += perf_event_mipsxx.o
110113

111114
obj-$(CONFIG_JUMP_LABEL) += jump_label.o
112115

0 commit comments

Comments
 (0)