arm64: perf: Remove unnecessary printk
authorSuzuki K. Poulose <suzuki.poulose@arm.com>
Fri, 12 Jun 2015 14:39:28 +0000 (15:39 +0100)
committerWill Deacon <will.deacon@arm.com>
Mon, 27 Jul 2015 10:08:38 +0000 (11:08 +0100)
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: Suzuki K. Poulose <suzuki.poulose@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/perf_event.c

index b31e9a4..2cd580a 100644 (file)
@@ -435,10 +435,8 @@ armpmu_reserve_hardware(struct arm_pmu *armpmu)
        unsigned int i, irqs;
        struct platform_device *pmu_device = armpmu->plat_device;
 
-       if (!pmu_device) {
-               pr_err("no PMU device registered\n");
+       if (!pmu_device)
                return -ENODEV;
-       }
 
        irqs = min(pmu_device->num_resources, num_possible_cpus());
        if (!irqs) {