[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tip-050c6c9b896625d9fa498265be17b82c5fc65257@git.kernel.org>
Date: Mon, 20 Dec 2010 08:37:31 GMT
From: tip-bot for Ingo Molnar <mingo@...e.hu>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, hpa@...or.com, mingo@...hat.com,
a.p.zijlstra@...llo.nl, torvalds@...ux-foundation.org,
efault@....de, tglx@...utronix.de, mingo@...e.hu
Subject: [tip:sched/urgent] sched: Remove debugging check
Commit-ID: 050c6c9b896625d9fa498265be17b82c5fc65257
Gitweb: http://git.kernel.org/tip/050c6c9b896625d9fa498265be17b82c5fc65257
Author: Ingo Molnar <mingo@...e.hu>
AuthorDate: Sun, 19 Dec 2010 23:24:27 +0100
Committer: Ingo Molnar <mingo@...e.hu>
CommitDate: Sun, 19 Dec 2010 23:24:27 +0100
sched: Remove debugging check
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 <torvalds@...ux-foundation.org>
Cc: Peter Zijlstra <a.p.zijlstra@...llo.nl>
Cc: Mike Galbraith <efault@....de>
LKML-Reference: <AANLkTinJ8hAG1TpyC+CSYPR47p48+1=E7fiC45hMXT_1@...l.gmail.com>
Signed-off-by: Ingo Molnar <mingo@...e.hu>
---
kernel/sched.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/kernel/sched.c b/kernel/sched.c
index 456c990..297d1a0 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -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 */
/*
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists