Skip to content

Commit 12f051c

Browse files
robherringwilldeacon
authored andcommitted
perf: arm_v6/7_pmu: Drop non-DT probe support
There are no non-DT based PMU users for v6 or v7, so drop the custom non-DT probe table. Unfortunately XScale still needs non-DT probing. Note that this drops support for arm1156 PMU, but there are no arm1156 based systems supported in the kernel. Acked-by: Mark Rutland <[email protected]> Signed-off-by: Rob Herring (Arm) <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent 8d75537 commit 12f051c

File tree

2 files changed

+2
-25
lines changed

2 files changed

+2
-25
lines changed

drivers/perf/arm_v6_pmu.c

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -401,13 +401,6 @@ static int armv6_1136_pmu_init(struct arm_pmu *cpu_pmu)
401401
return 0;
402402
}
403403

404-
static int armv6_1156_pmu_init(struct arm_pmu *cpu_pmu)
405-
{
406-
armv6pmu_init(cpu_pmu);
407-
cpu_pmu->name = "armv6_1156";
408-
return 0;
409-
}
410-
411404
static int armv6_1176_pmu_init(struct arm_pmu *cpu_pmu)
412405
{
413406
armv6pmu_init(cpu_pmu);
@@ -421,17 +414,9 @@ static const struct of_device_id armv6_pmu_of_device_ids[] = {
421414
{ /* sentinel value */ }
422415
};
423416

424-
static const struct pmu_probe_info armv6_pmu_probe_table[] = {
425-
ARM_PMU_PROBE(ARM_CPU_PART_ARM1136, armv6_1136_pmu_init),
426-
ARM_PMU_PROBE(ARM_CPU_PART_ARM1156, armv6_1156_pmu_init),
427-
ARM_PMU_PROBE(ARM_CPU_PART_ARM1176, armv6_1176_pmu_init),
428-
{ /* sentinel value */ }
429-
};
430-
431417
static int armv6_pmu_device_probe(struct platform_device *pdev)
432418
{
433-
return arm_pmu_device_probe(pdev, armv6_pmu_of_device_ids,
434-
armv6_pmu_probe_table);
419+
return arm_pmu_device_probe(pdev, armv6_pmu_of_device_ids, NULL);
435420
}
436421

437422
static struct platform_driver armv6_pmu_driver = {

drivers/perf/arm_v7_pmu.c

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1977,17 +1977,9 @@ static const struct of_device_id armv7_pmu_of_device_ids[] = {
19771977
{},
19781978
};
19791979

1980-
static const struct pmu_probe_info armv7_pmu_probe_table[] = {
1981-
ARM_PMU_PROBE(ARM_CPU_PART_CORTEX_A8, armv7_a8_pmu_init),
1982-
ARM_PMU_PROBE(ARM_CPU_PART_CORTEX_A9, armv7_a9_pmu_init),
1983-
{ /* sentinel value */ }
1984-
};
1985-
1986-
19871980
static int armv7_pmu_device_probe(struct platform_device *pdev)
19881981
{
1989-
return arm_pmu_device_probe(pdev, armv7_pmu_of_device_ids,
1990-
armv7_pmu_probe_table);
1982+
return arm_pmu_device_probe(pdev, armv7_pmu_of_device_ids, NULL);
19911983
}
19921984

19931985
static struct platform_driver armv7_pmu_driver = {

0 commit comments

Comments
 (0)