]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: PMU: move CPU PMU platform device handling and init into perf
authorWill Deacon <will.deacon@arm.com>
Tue, 26 Jul 2011 21:10:28 +0000 (22:10 +0100)
committerWill Deacon <will.deacon@arm.com>
Wed, 31 Aug 2011 09:17:59 +0000 (10:17 +0100)
commite32132c5ef0cd8e574101966e8915a751a06fc81
tree8d81a0d268dd6780e4c5a7cfa4b9c49708afebc7
parent3a66490cd7cf7b1843e7c6cbad9438209a643b4b
ARM: PMU: move CPU PMU platform device handling and init into perf

Once upon a time, OProfile and Perf fought hard over who could play with
the PMU. To stop all hell from breaking loose, pmu.c offered an internal
reserve/release API and took care of parsing PMU platform data passed in
from board support code.

Now that Perf has ingested OProfile, let's move the platform device
handling into the Perf driver and out of the PMU locking code.
Unfortunately, the lock has to remain to prevent Perf being bitten by
out-of-tree modules such as LTTng, which still claim a right to the PMU
when Perf isn't looking.

Acked-by: Jamie Iles <jamie@jamieiles.com>
Reviewed-by: Jean Pihet <j-pihet@ti.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm/include/asm/pmu.h
arch/arm/kernel/perf_event.c
arch/arm/kernel/pmu.c