lkml.org 
[lkml]   [2011]   [Nov]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH tip/core/rcu 8/9] events: Make events use the new is_idle_task() API
    Date
    From: Paul E. McKenney <paul.mckenney@linaro.org>

    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>
    ---
    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 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;
    }
    --
    1.7.3.2


    \
     
     \ /
      Last update: 2011-11-15 21:31    [W:0.019 / U:59.804 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site