Message ID | 1321388885-11211-8-git-send-email-paulmck@linux.vnet.ibm.com |
---|---|
State | Accepted |
Commit | 77aeeebd7b5483582d0eb6e3fd2894771d1fd8e5 |
Headers | show |
diff --git a/kernel/events/core.c b/kernel/events/core.c index 0e8457d..cd3aa34 100644 --- a/kernel/events/core.c +++ b/kernel/events/core.c @@ -5283,7 +5283,7 @@ static enum hrtimer_restart perf_swevent_hrtimer(struct hrtimer *hrtimer) regs = get_irq_regs(); if (regs && !perf_exclude_event(event, regs)) { - if (!(event->attr.exclude_idle && current->pid == 0)) + if (!(event->attr.exclude_idle && is_idle_task(current))) if (perf_event_overflow(event, &data, regs)) ret = HRTIMER_NORESTART; }