perfcounters: include asm/perf_counter.h only if CONFIG_PERF_COUNTERS=y
authorIngo Molnar <mingo@elte.hu>
Thu, 25 Dec 2008 08:02:11 +0000 (09:02 +0100)
committerIngo Molnar <mingo@elte.hu>
Thu, 25 Dec 2008 09:57:48 +0000 (10:57 +0100)
Impact: build fix on ia64

KOSAKI Motohiro reported that -tip doesnt build on ia64 because
asm/perf_counter.h only exists on x86 for now. Fix it.

Reported-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Tested-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Acked-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/perf_counter.h

index ec77d1643d370b0cc9e7cda28ba62b79a52be6bd..cc3a75a239a9a275ed7ebf025d9dfcec92810247 100644 (file)
 #define _LINUX_PERF_COUNTER_H
 
 #include <asm/atomic.h>
-#include <asm/perf_counter.h>
+
+#ifdef CONFIG_PERF_COUNTERS
+# include <asm/perf_counter.h>
+#endif
 
 #include <linux/list.h>
 #include <linux/mutex.h>
This page took 0.026182 seconds and 5 git commands to generate.