Commit 7be79236 authored by Peter Zijlstra's avatar Peter Zijlstra Committed by Ingo Molnar

perf: Fix build breakage for architecutes without atomic64_t

The local64.h include dependency was not dependent on PERF_EVENT=y,
which meant that arch's without atomic64_t support ended up including
it and failed to build.
Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <new-submission>
parent e7850595
...@@ -462,6 +462,7 @@ enum perf_callchain_context { ...@@ -462,6 +462,7 @@ enum perf_callchain_context {
#ifdef CONFIG_PERF_EVENTS #ifdef CONFIG_PERF_EVENTS
# include <asm/perf_event.h> # include <asm/perf_event.h>
# include <asm/local64.h>
#endif #endif
struct perf_guest_info_callbacks { struct perf_guest_info_callbacks {
...@@ -487,7 +488,6 @@ struct perf_guest_info_callbacks { ...@@ -487,7 +488,6 @@ struct perf_guest_info_callbacks {
#include <linux/cpu.h> #include <linux/cpu.h>
#include <asm/atomic.h> #include <asm/atomic.h>
#include <asm/local.h> #include <asm/local.h>
#include <asm/local64.h>
#define PERF_MAX_STACK_DEPTH 255 #define PERF_MAX_STACK_DEPTH 255
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment