perf_counter: fix NMI race in task clock
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Wed, 8 Apr 2009 13:01:25 +0000 (15:01 +0200)
committerIngo Molnar <mingo@elte.hu>
Wed, 8 Apr 2009 16:53:27 +0000 (18:53 +0200)
commite30e08f65c7ef6c230424264f09c3d53f117f58b
treebc30c6a31dc53932a5f7030402e87b36d7bddc07
parent7333a8003cdc0470e8c0ae8b949cbc44f3165ff3
perf_counter: fix NMI race in task clock

We should not be updating ctx->time from NMI context, work around that.

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: <20090408130408.681326666@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/perf_counter.c