sched: do not do cond_resched() when CONFIG_PREEMPT
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 25 Jan 2008 20:08:28 +0000 (21:08 +0100)
committerIngo Molnar <mingo@elte.hu>
Fri, 25 Jan 2008 20:08:28 +0000 (21:08 +0100)
commit02b67cc3ba36bdba351d6c3a00593f4ec550d9d3
tree5185ad2d780974dc864f12d81d6c8b9fec73097b
parent03319ec8b06849051747a17aa2a0f9aba9277980
sched: do not do cond_resched() when CONFIG_PREEMPT

Why do we even have cond_resched when real preemption
is on? It seems to be a waste of space and time.

remove cond_resched with CONFIG_PREEMPT on.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/kernel.h
include/linux/sched.h
kernel/sched.c