diff options
author | Ingo Molnar <mingo@elte.hu> | 2012-03-05 03:20:08 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2012-03-05 03:20:08 -0500 |
commit | 737f24bda723fdf89ecaacb99fa2bf5683c32799 (patch) | |
tree | 35495fff3e9956679cb5468e74e6814c8e44ee66 /arch/x86/include/asm/perf_event.h | |
parent | 8eedce996556d7d06522cd3a0e6069141c8dffe0 (diff) | |
parent | b7c924274c456499264d1cfa3d44063bb11eb5db (diff) |
Merge branch 'perf/urgent' into perf/core
Conflicts:
tools/perf/builtin-record.c
tools/perf/builtin-top.c
tools/perf/perf.h
tools/perf/util/top.h
Merge reason: resolve these cherry-picking conflicts.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/include/asm/perf_event.h')
-rw-r--r-- | arch/x86/include/asm/perf_event.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/x86/include/asm/perf_event.h b/arch/x86/include/asm/perf_event.h index 9b922c136254..e8fb2c7a5f4f 100644 --- a/arch/x86/include/asm/perf_event.h +++ b/arch/x86/include/asm/perf_event.h | |||
@@ -240,4 +240,12 @@ static inline void perf_get_x86_pmu_capability(struct x86_pmu_capability *cap) | |||
240 | static inline void perf_events_lapic_init(void) { } | 240 | static inline void perf_events_lapic_init(void) { } |
241 | #endif | 241 | #endif |
242 | 242 | ||
243 | #if defined(CONFIG_PERF_EVENTS) && defined(CONFIG_CPU_SUP_AMD) | ||
244 | extern void amd_pmu_enable_virt(void); | ||
245 | extern void amd_pmu_disable_virt(void); | ||
246 | #else | ||
247 | static inline void amd_pmu_enable_virt(void) { } | ||
248 | static inline void amd_pmu_disable_virt(void) { } | ||
249 | #endif | ||
250 | |||
243 | #endif /* _ASM_X86_PERF_EVENT_H */ | 251 | #endif /* _ASM_X86_PERF_EVENT_H */ |