mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
arm_pmu: fold platform helpers into platform code
The armpmu_{request,free}_irqs() helpers are only used by
arm_pmu_platform.c, so let's fold them in and make them static.
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
This commit is contained in:
committed by
Will Deacon
parent
c0248c9663
commit
d3d5aac206
@@ -164,6 +164,27 @@ static int pmu_parse_irqs(struct arm_pmu *pmu)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int armpmu_request_irqs(struct arm_pmu *armpmu)
|
||||
{
|
||||
int cpu, err;
|
||||
|
||||
for_each_cpu(cpu, &armpmu->supported_cpus) {
|
||||
err = armpmu_request_irq(armpmu, cpu);
|
||||
if (err)
|
||||
break;
|
||||
}
|
||||
|
||||
return err;
|
||||
}
|
||||
|
||||
static void armpmu_free_irqs(struct arm_pmu *armpmu)
|
||||
{
|
||||
int cpu;
|
||||
|
||||
for_each_cpu(cpu, &armpmu->supported_cpus)
|
||||
armpmu_free_irq(armpmu, cpu);
|
||||
}
|
||||
|
||||
int arm_pmu_device_probe(struct platform_device *pdev,
|
||||
const struct of_device_id *of_table,
|
||||
const struct pmu_probe_info *probe_table)
|
||||
|
||||
Reference in New Issue
Block a user