drivers/perf: arm_pmu_acpi: drop redundant acpi_disabled check
authorShaokun Zhang <zhangshaokun@hisilicon.com>
Wed, 27 Sep 2017 06:30:24 +0000 (14:30 +0800)
committerWill Deacon <will.deacon@arm.com>
Wed, 4 Oct 2017 12:42:59 +0000 (13:42 +0100)
acpi_disabled has been checked in armv8_pmu_driver_init and it shall
be ZERO in arm_pmu_acpi_probe, clean up this unnecessary check.

Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/perf/arm_pmu_acpi.c

index 3303dd8d8eb5718f96de5326949ba89a60e9f32e..705f1a390e3123a2d305e0468cec8194d972ed39 100644 (file)
@@ -193,9 +193,6 @@ int arm_pmu_acpi_probe(armpmu_init_fn init_fn)
        int pmu_idx = 0;
        int cpu, ret;
 
-       if (acpi_disabled)
-               return 0;
-
        /*
         * Initialise and register the set of PMUs which we know about right
         * now. Ideally we'd do this in arm_pmu_acpi_cpu_starting() so that we