[ARM] Solve buggy smp_processor_id() usage
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Sat, 2 Jun 2007 14:36:37 +0000 (15:36 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 2 Jun 2007 20:31:49 +0000 (21:31 +0100)
commitf72267c30f5a08f9a77c97417ec120e6943195f8
tree72516867e90329c97bb549d7cc26f06ef01b03e6
parent29c349d22ccda5678a7dfb732093dbd3befcefa3
[ARM] Solve buggy smp_processor_id() usage

BUG: using smp_processor_id() in preemptible [00000001] code: opcontrol/427

Resolve this bug by ensuring that we're not using smp_processor_id() in
a preemptable context (by disabling preemption.)

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