Skip to content

Commit

Permalink
perfcounters: include asm/perf_counter.h only if CONFIG_PERF_COUNTERS=y
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ingo Molnar committed Dec 25, 2008
1 parent 2f18d1e commit e44aef5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include/linux/perf_counter.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@
#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>
Expand Down

0 comments on commit e44aef5

Please sign in to comment.