[PATCH] sched: make cpu_clock() not use the rq clock
authorIngo Molnar <mingo@elte.hu>
Thu, 26 Jul 2007 11:40:43 +0000 (13:40 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 26 Jul 2007 11:40:43 +0000 (13:40 +0200)
commit2cd4d0ea19713304963dbb2de5073700bfe253f5
tree39a374d0918db059413f6709184669da63af81ef
parent018a2212950457b1093e504cd834aa0fe749da6c
[PATCH] sched: make cpu_clock() not use the rq clock

it is enough to disable interrupts to get the precise rq-clock
of the local CPU.

this also solves an NMI watchdog regression: the NMI watchdog
calls touch_softlockup_watchdog(), which might deadlock on
rq->lock if the NMI hits an rq-locked critical section.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched.c