diff options
author | Paul E. McKenney <paul.mckenney@linaro.org> | 2011-11-10 19:02:52 -0500 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2011-12-11 13:31:54 -0500 |
commit | 77aeeebd7b5483582d0eb6e3fd2894771d1fd8e5 (patch) | |
tree | fc46b87358f3d68c6d2c82813e2667fd1afd996e /kernel/events | |
parent | 7fc20c5cbdd184f32cb0f886f1a069f123f5787a (diff) |
events: Make events use the new is_idle_task() API
Change from direct comparison of ->pid with zero to is_idle_task().
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Diffstat (limited to 'kernel/events')
-rw-r--r-- | kernel/events/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/events/core.c b/kernel/events/core.c index d3b9df5962c2..923c6b5667db 100644 --- a/kernel/events/core.c +++ b/kernel/events/core.c | |||
@@ -5362,7 +5362,7 @@ static enum hrtimer_restart perf_swevent_hrtimer(struct hrtimer *hrtimer) | |||
5362 | regs = get_irq_regs(); | 5362 | regs = get_irq_regs(); |
5363 | 5363 | ||
5364 | if (regs && !perf_exclude_event(event, regs)) { | 5364 | if (regs && !perf_exclude_event(event, regs)) { |
5365 | if (!(event->attr.exclude_idle && current->pid == 0)) | 5365 | if (!(event->attr.exclude_idle && is_idle_task(current))) |
5366 | if (perf_event_overflow(event, &data, regs)) | 5366 | if (perf_event_overflow(event, &data, regs)) |
5367 | ret = HRTIMER_NORESTART; | 5367 | ret = HRTIMER_NORESTART; |
5368 | } | 5368 | } |