summaryrefslogtreecommitdiffstats
path: root/arch/arm64/include
diff options
context:
space:
mode:
authorMark Rutland <mark.rutland@arm.com>2015-07-06 12:23:54 +0100
committerWill Deacon <will.deacon@arm.com>2015-07-27 11:08:39 +0100
commit52da443ec4d0a807b720527eb474f9c2878cd671 (patch)
treed558a2f8b991577f6f59b6e71e7d3c756b7f0fa2 /arch/arm64/include
parent23e94994464a7281838785675e09c8ed1055f62f (diff)
downloadtalos-obmc-linux-52da443ec4d0a807b720527eb474f9c2878cd671.tar.gz
talos-obmc-linux-52da443ec4d0a807b720527eb474f9c2878cd671.zip
arm64: perf: factor out callchain code
We currently bundle the callchain handling code with the PMU code, despite the fact the two are distinct, and the former can be useful even in the absence of the latter. Follow the example of arch/arm and factor the callchain handling into its own file dependent on CONFIG_PERF_EVENTS rather than CONFIG_HW_PERF_EVENTS. Signed-off-by: Mark Rutland <mark.rutland@arm.com> Cc: Will Deacon <will.deacon@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/include')
-rw-r--r--arch/arm64/include/asm/perf_event.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/include/asm/perf_event.h b/arch/arm64/include/asm/perf_event.h
index 6471773db6fd..7bd3cdb533ea 100644
--- a/arch/arm64/include/asm/perf_event.h
+++ b/arch/arm64/include/asm/perf_event.h
@@ -17,7 +17,7 @@
#ifndef __ASM_PERF_EVENT_H
#define __ASM_PERF_EVENT_H
-#ifdef CONFIG_HW_PERF_EVENTS
+#ifdef CONFIG_PERF_EVENTS
struct pt_regs;
extern unsigned long perf_instruction_pointer(struct pt_regs *regs);
extern unsigned long perf_misc_flags(struct pt_regs *regs);
OpenPOWER on IntegriCloud