]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/perf: arm_pmu: fold init into alloc
authorMark Rutland <mark.rutland@arm.com>
Tue, 11 Apr 2017 08:39:46 +0000 (09:39 +0100)
committerWill Deacon <will.deacon@arm.com>
Tue, 11 Apr 2017 15:29:53 +0000 (16:29 +0100)
commit50b6bd8f38329cee74b8bb49ae1f7367e24d89c3
treeb20d7d05a2ede75ad879c2d00ec76e62e7e6cc12
parent69f4cac1ec86b597b01e29486b6fbb152517359c
drivers/perf: arm_pmu: fold init into alloc

Given we always want to initialise common fields on an allocated PMU,
this patch folds this common initialisation into armpmu_alloc(). This
will make it simpler to reuse this code for an ACPI-specific probe path.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Tested-by: Jeremy Linton <jeremy.linton@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/perf/arm_pmu.c