perf: Fix perf_event_do_pending() fallback callsite
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Mon, 18 Jan 2010 08:08:26 +0000 (09:08 +0100)
committerIngo Molnar <mingo@elte.hu>
Thu, 21 Jan 2010 12:40:39 +0000 (13:40 +0100)
commitc6928e3c843800ca8f64ba8c1eaf88520d9d1beb
treedab76fc8e717241e1e035f3856d22af5582c1c9c
parent9b5da282a6454eb3e90d61a384fe8e3ab5ed85b8
perf: Fix perf_event_do_pending() fallback callsite

Paul questioned the context in which we should call
perf_event_do_pending(). After looking at that I found that it should be
called from IRQ context these days, however the fallback call-site is
placed in softirq context. Ammend this by placing the callback in the IRQ
timer path.

Reported-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <1263374859.4244.192.camel@laptop>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/timer.c