tracing/hw-branch-tracing: convert bts-tracer mutex to a spinlock
authorIngo Molnar <mingo@elte.hu>
Wed, 25 Feb 2009 07:40:09 +0000 (08:40 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 25 Feb 2009 08:16:01 +0000 (09:16 +0100)
Impact: fix CPU hotplug lockup

bts_hotcpu_handler() is called with irqs disabled, so using mutex_lock()
is a no-no.

All the BTS codepaths here are atomic (they do not schedule), so using
a spinlock is the right solution.

Cc: Markus Metzger <markus.t.metzger@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

No differences found