Revert "sched: improve preempt debugging"
authorIngo Molnar <mingo@elte.hu>
Mon, 12 Jan 2009 12:00:50 +0000 (13:00 +0100)
committerIngo Molnar <mingo@elte.hu>
Mon, 12 Jan 2009 12:00:50 +0000 (13:00 +0100)
commit01e3eb82278bf45221fc38b391bc5ee0f6a314d6
treef360e00729c85091798cbc99e5ea10cdf0c7e3a8
parentfd2ab30b65e961b974ae0bc71e0d47d6b35e0968
Revert "sched: improve preempt debugging"

This reverts commit 7317d7b87edb41a9135e30be1ec3f7ef817c53dd.

This has been reported (and bisected) by Alexey Zaytsev and
Kamalesh Babulal to produce annoying warnings during bootup
on both x86 and powerpc.

kernel_locked() is not a valid test in IRQ context (we update the
BKL's ->lock_depth and the preempt count separately and non-atomicalyy),
so we cannot put it into the generic preempt debugging checks which
can run in IRQ contexts too.

Reported-and-bisected-by: Alexey Zaytsev <alexey.zaytsev@gmail.com>
Reported-and-bisected-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched.c