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)
commit1dce8d99b85aba6eddb8b8260baea944922e6fe7
tree77afc73743f8eb1c81b652418661b98b1f4b933d
parent0d905bca23aca5c86a10ee101bcd3b1abbd40b25
perf_counter: convert perf_resource_mutex to a spinlock

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>
kernel/perf_counter.c