diff options
author | Peter Zijlstra <peterz@infradead.org> | 2013-07-03 03:55:42 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2013-07-05 02:27:15 -0400 |
commit | 100ac5331519866afa9b000b10642b00cb6d03dd (patch) | |
tree | dfbf9b1aa0a198412636ed7078687c595df9ded2 /arch/x86 | |
parent | 7c6809ff2bd63d4c97ce9e0b94d39d5180842c48 (diff) |
perf/x86/amd: Do not print an error when the device is not present
As Linus said its not an error to not have an AMD IOMMU; esp.
when you're not even running on an AMD platform.
Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Acked-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Cc: Arnaldo Carvalho de Melo <acme@infradead.org>
Link: http://lkml.kernel.org/r/20130703075542.GF23916@twins.programming.kicks-ass.net
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/kernel/cpu/perf_event_amd_iommu.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/x86/kernel/cpu/perf_event_amd_iommu.c b/arch/x86/kernel/cpu/perf_event_amd_iommu.c index 0db655ef3918..639d1289b1ba 100644 --- a/arch/x86/kernel/cpu/perf_event_amd_iommu.c +++ b/arch/x86/kernel/cpu/perf_event_amd_iommu.c | |||
@@ -491,10 +491,8 @@ static struct perf_amd_iommu __perf_iommu = { | |||
491 | static __init int amd_iommu_pc_init(void) | 491 | static __init int amd_iommu_pc_init(void) |
492 | { | 492 | { |
493 | /* Make sure the IOMMU PC resource is available */ | 493 | /* Make sure the IOMMU PC resource is available */ |
494 | if (!amd_iommu_pc_supported()) { | 494 | if (!amd_iommu_pc_supported()) |
495 | pr_err("perf: amd_iommu PMU not installed. No support!\n"); | ||
496 | return -ENODEV; | 495 | return -ENODEV; |
497 | } | ||
498 | 496 | ||
499 | _init_perf_amd_iommu(&__perf_iommu, "amd_iommu"); | 497 | _init_perf_amd_iommu(&__perf_iommu, "amd_iommu"); |
500 | 498 | ||