perf_counter: convert perf_resource_mutex to a spinlock
authorIngo Molnar <mingo@elte.hu>
Mon, 4 May 2009 17:23:18 +0000 (19:23 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 4 May 2009 17:30:42 +0000 (19:30 +0200)
Now percpu counters can be initialized very early. But the init
sequence uses mutex_lock(). Fortunately, perf_resource_mutex should
be a spinlock anyway, so convert it.

[ Impact: fix crash due to early init mutex use ]

LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

No differences found