sched: sched_clock() improvement: use in_nmi()
authorIngo Molnar <mingo@elte.hu>
Mon, 12 May 2008 19:21:14 +0000 (21:21 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 26 Feb 2009 17:44:05 +0000 (18:44 +0100)
commit6409c4da289d6905f7ae2bd0630438368439bda2
treea89ab72b160acabe7e83200f73ba3a2cb3b2a0be
parentaf39241b90a345556b8884adff87096afe71b050
sched: sched_clock() improvement: use in_nmi()

make sure we dont execute more complex sched_clock() code in NMI context.

Acked-by: Peter Zijlstra <peterz@infradead.org>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched_clock.c