ARM: 6074/1: oprofile: convert from sysdev to platform device
authorWill Deacon <will.deacon@arm.com>
Fri, 30 Apr 2010 10:38:39 +0000 (11:38 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 17 May 2010 10:53:59 +0000 (11:53 +0100)
commitd1e86d64bc48dedd0d68d182d0ce6951d8b4fd0d
treedda2df2133dc73a542d6c59df5da84f731ab1b85
parentfe166148f699cc7865ca07b6754872cfb5ebc312
ARM: 6074/1: oprofile: convert from sysdev to platform device

This is a reworking of an original patch posted by Aaro Koskinen:

oprofile does not work with PM, because sysdev_suspend() is done with
interrupts disabled and oprofile needs a mutex. Implementing oprofile
as a platform device solves this problem.

Cc: Aaro Koskinen <aaro.koskinen@nokia.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Aaro Koskinen <aaro.koskinen@nokia.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/oprofile/common.c