summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Richter <robert.richter@amd.com>2012-05-11 11:44:59 +0200
committerIngo Molnar <mingo@kernel.org>2012-05-14 14:31:35 +0200
commit978da300c7a65494692b329a6a4cbf364afc37c5 (patch)
tree30a12759b4fc6e701db11ca1227b2ad954a419d1
parent0c5a0f96e82ed73bca017c1c5601a4253cff49df (diff)
downloadlinux-3.10-978da300c7a65494692b329a6a4cbf364afc37c5.tar.gz
linux-3.10-978da300c7a65494692b329a6a4cbf364afc37c5.tar.bz2
linux-3.10-978da300c7a65494692b329a6a4cbf364afc37c5.zip
perf/x86/ibs: Fix undefined reference to `get_ibs_caps'
Fixing i386 allnoconfig built errors: arch/x86/built-in.o: In function `amd_pmu_hw_config': perf_event_amd.c:(.text+0xc3e1): undefined reference to `get_ibs_caps' Reported-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Robert Richter <robert.richter@amd.com> Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r--arch/x86/include/asm/perf_event.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86/include/asm/perf_event.h b/arch/x86/include/asm/perf_event.h
index 4e40a64315c..588f52ea810 100644
--- a/arch/x86/include/asm/perf_event.h
+++ b/arch/x86/include/asm/perf_event.h
@@ -188,7 +188,11 @@ struct x86_pmu_capability {
#define IBS_OP_MAX_CNT_EXT 0x007FFFFFULL /* not a register bit mask */
#define IBS_RIP_INVALID (1ULL<<38)
+#ifdef CONFIG_X86_LOCAL_APIC
extern u32 get_ibs_caps(void);
+#else
+static inline u32 get_ibs_caps(void) { return 0; }
+#endif
#ifdef CONFIG_PERF_EVENTS
extern void perf_events_lapic_init(void);