Commit 2d23ed04 authored by Suzuki K. Poulose's avatar Suzuki K. Poulose Committed by Will Deacon

arm64: perf: Remove unnecessary printk

ARM64 pmu prints an error message in event_init() when
no hardware PMU is available. This is pretty annoying as
it keeps printing the message for every single trial, flooding
the kernel logs, unnecessarily. The return code is sufficient for
the user to figure out the reason.
Signed-off-by: default avatarSuzuki K. Poulose <suzuki.poulose@arm.com>
Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
parent cbfe8fa6
...@@ -435,10 +435,8 @@ armpmu_reserve_hardware(struct arm_pmu *armpmu) ...@@ -435,10 +435,8 @@ armpmu_reserve_hardware(struct arm_pmu *armpmu)
unsigned int i, irqs; unsigned int i, irqs;
struct platform_device *pmu_device = armpmu->plat_device; struct platform_device *pmu_device = armpmu->plat_device;
if (!pmu_device) { if (!pmu_device)
pr_err("no PMU device registered\n");
return -ENODEV; return -ENODEV;
}
irqs = min(pmu_device->num_resources, num_possible_cpus()); irqs = min(pmu_device->num_resources, num_possible_cpus());
if (!irqs) { if (!irqs) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment