diff options
author | Michal Suchanek <msuchanek@suse.de> | 2020-03-20 11:20:18 +0100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2020-04-03 00:10:00 +1100 |
commit | 7c0eda1a04340a1de09bdf6521853e3bc0637c3b (patch) | |
tree | 4b408bed20097a5f904cdb9caa4fcafbb28f7a57 /arch/powerpc/perf/Makefile | |
parent | 6e944aed8859d3b2de32ddb86748db9aefa43667 (diff) | |
download | linux-7c0eda1a04340a1de09bdf6521853e3bc0637c3b.tar.bz2 |
powerpc/perf: split callchain.c by bitness
Building callchain.c with !COMPAT proved quite ugly with all the
defines. Splitting out the 32bit and 64bit parts looks better.
No code change intended.
Signed-off-by: Michal Suchanek <msuchanek@suse.de>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/a20027bf1074935a7934ee2a6757c99ea047e70d.1584699455.git.msuchanek@suse.de
Diffstat (limited to 'arch/powerpc/perf/Makefile')
-rw-r--r-- | arch/powerpc/perf/Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/powerpc/perf/Makefile b/arch/powerpc/perf/Makefile index c155dcbb8691..53d614e98537 100644 --- a/arch/powerpc/perf/Makefile +++ b/arch/powerpc/perf/Makefile @@ -1,6 +1,9 @@ # SPDX-License-Identifier: GPL-2.0 -obj-$(CONFIG_PERF_EVENTS) += callchain.o perf_regs.o +obj-$(CONFIG_PERF_EVENTS) += callchain.o callchain_$(BITS).o perf_regs.o +ifdef CONFIG_COMPAT +obj-$(CONFIG_PERF_EVENTS) += callchain_32.o +endif obj-$(CONFIG_PPC_PERF_CTRS) += core-book3s.o bhrb.o obj64-$(CONFIG_PPC_PERF_CTRS) += ppc970-pmu.o power5-pmu.o \ |