perf_counter: remove rq->lock usage
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Mon, 6 Apr 2009 09:45:12 +0000 (11:45 +0200)
committerIngo Molnar <mingo@elte.hu>
Tue, 7 Apr 2009 08:49:01 +0000 (10:49 +0200)
commit849691a6cd40270ff5f4a8846d5f6bf8df663ffc
treeb61157f375905d21bf0facae603e4247e1de9007
parenta39d6f2556c4a19f58f538c6aa28bf8faca4fcb8
perf_counter: remove rq->lock usage

Now that all the task runtime clock users are gone, remove the ugly
rq->lock usage from perf counters, which solves the nasty deadlock
seen when a software task clock counter was read from an NMI overflow
context.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
LKML-Reference: <20090406094518.531137582@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/kernel_stat.h
kernel/perf_counter.c
kernel/sched.c