- make the preempt-enable test cheaper - only test for the (very rare) TIF_NEED_RESCHED
authorIngo Molnar <mingo@elte.hu>
Wed, 13 Feb 2002 15:01:58 +0000 (16:01 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 13 Feb 2002 15:01:58 +0000 (16:01 +0100)
commitb9abf4044f31b3d69f4ac559d39b7052b9bd34f6
treefef873db8a2bf36d0f51494312339454acafd2ad
parent67176db291825c5a8cb0e1d994be309190b1fcf2
- make the preempt-enable test cheaper - only test for the (very rare) TIF_NEED_RESCHED
  condition, we test the preemption count in preempt_schedule(). This reduces the icache
  footprint and the overhead of preemption.

- plus optimize the irq-path preemption check a bit.
arch/i386/kernel/entry.S
include/linux/spinlock.h
kernel/sched.c