commit | 1dce8d99b85aba6eddb8b8260baea944922e6fe7 | [log] [tgz] |
---|---|---|
author | Ingo Molnar <mingo@elte.hu> | Mon May 04 19:23:18 2009 +0200 |
committer | Ingo Molnar <mingo@elte.hu> | Mon May 04 19:30:42 2009 +0200 |
tree | 77afc73743f8eb1c81b652418661b98b1f4b933d | |
parent | 0d905bca23aca5c86a10ee101bcd3b1abbd40b25 [diff] |
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>