sched: Remove debugging check
authorIngo Molnar <[email protected]>
Sun, 19 Dec 2010 22:24:27 +0000 (23:24 +0100)
committerIngo Molnar <[email protected]>
Sun, 19 Dec 2010 22:24:27 +0000 (23:24 +0100)
Linus reported that the new warning introduced by commit f26f9aff6aaf
"Sched: fix skip_clock_update optimization" triggers. The need_resched
flag can be set by other CPUs asynchronously so this debug check is
bogus - remove it.

Reported-by: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Mike Galbraith <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
kernel/sched.c

index 456c99054160a773fa6736005397a3bc138f6902..297d1a0eedb0e68d8b9327f530ba477c93b1222e 100644 (file)
@@ -4128,7 +4128,6 @@ need_resched_nonpreemptible:
                rq->nr_switches++;
                rq->curr = next;
                ++*switch_count;
-               WARN_ON_ONCE(test_tsk_need_resched(next));
 
                context_switch(rq, prev, next); /* unlocks the rq */
                /*