[ARM] 2/4 Fix oprofile suspend/resume
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Fri, 28 Oct 2005 13:52:30 +0000 (14:52 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 28 Oct 2005 13:52:30 +0000 (14:52 +0100)
commit7c5b3fc20807279d8f8e78f1e2ef275128668796
tree393e609ef9e6cd32c9fbce258686a462b33b4ce8
parentb5893c56ca7e664aef010a71c2638db768d4e996
[ARM] 2/4 Fix oprofile suspend/resume

The oprofile suspend/resume was missing locking.  If we failed
to start oprofile on resume, we still reported that it was
enabled.  Instead, disable oprofile on error.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/oprofile/common.c