lkml.org 
[lkml]   [2010]   [Sep]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[079/123] sched: Make warning less noisy
    From: Ingo Molnar <mingo@elte.hu>

    commit 416eb39556a03d1c7e52b0791e9052ccd71db241 upstream

    Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
    Cc: Mike Galbraith <efault@gmx.de>
    LKML-Reference: <20091216170517.807938893@chello.nl>
    Signed-off-by: Ingo Molnar <mingo@elte.hu>
    Signed-off-by: Mike Galbraith <efault@gmx.de>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
    ---
    kernel/sched.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/kernel/sched.c
    +++ b/kernel/sched.c
    @@ -2071,7 +2071,7 @@ void set_task_cpu(struct task_struct *p,
    * We should never call set_task_cpu() on a blocked task,
    * ttwu() will sort out the placement.
    */
    - WARN_ON(p->state != TASK_RUNNING && p->state != TASK_WAKING);
    + WARN_ON_ONCE(p->state != TASK_RUNNING && p->state != TASK_WAKING);
    #endif

    trace_sched_migrate_task(p, new_cpu);



    \
     
     \ /
      Last update: 2010-09-18 21:47    [W:4.067 / U:0.128 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site