diff options
Diffstat (limited to 'arch/x86/kernel/cpu/perf_event_amd.c')
-rw-r--r-- | arch/x86/kernel/cpu/perf_event_amd.c | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/arch/x86/kernel/cpu/perf_event_amd.c b/arch/x86/kernel/cpu/perf_event_amd.c index ee9436c3e5d6..ed334c889265 100644 --- a/arch/x86/kernel/cpu/perf_event_amd.c +++ b/arch/x86/kernel/cpu/perf_event_amd.c | |||
@@ -1,4 +1,9 @@ | |||
1 | #ifdef CONFIG_CPU_SUP_AMD | 1 | #include <linux/perf_event.h> |
2 | #include <linux/types.h> | ||
3 | #include <linux/init.h> | ||
4 | #include <linux/slab.h> | ||
5 | |||
6 | #include "perf_event.h" | ||
2 | 7 | ||
3 | static __initconst const u64 amd_hw_cache_event_ids | 8 | static __initconst const u64 amd_hw_cache_event_ids |
4 | [PERF_COUNT_HW_CACHE_MAX] | 9 | [PERF_COUNT_HW_CACHE_MAX] |
@@ -573,7 +578,7 @@ static __initconst const struct x86_pmu amd_pmu_f15h = { | |||
573 | #endif | 578 | #endif |
574 | }; | 579 | }; |
575 | 580 | ||
576 | static __init int amd_pmu_init(void) | 581 | __init int amd_pmu_init(void) |
577 | { | 582 | { |
578 | /* Performance-monitoring supported from K7 and later: */ | 583 | /* Performance-monitoring supported from K7 and later: */ |
579 | if (boot_cpu_data.x86 < 6) | 584 | if (boot_cpu_data.x86 < 6) |
@@ -602,12 +607,3 @@ static __init int amd_pmu_init(void) | |||
602 | 607 | ||
603 | return 0; | 608 | return 0; |
604 | } | 609 | } |
605 | |||
606 | #else /* CONFIG_CPU_SUP_AMD */ | ||
607 | |||
608 | static int amd_pmu_init(void) | ||
609 | { | ||
610 | return 0; | ||
611 | } | ||
612 | |||
613 | #endif | ||