CVSROOT: /cvs
Module name: src
Changes by: [EMAIL PROTECTED] 2008/07/18 17:43:31
Modified files:
sys/arch/alpha/include: cpu.h
sys/arch/amd64/include: cpu.h
sys/arch/arm/include: cpu.h
sys/arch/hp300/include: cpu.h
sys/arch/hppa/include: cpu.h
sys/arch/hppa64/include: cpu.h
sys/arch/i386/include: cpu.h
sys/arch/m88k/include: cpu.h
sys/arch/mac68k/include: cpu.h
sys/arch/mips64/include: cpu.h
sys/arch/mvme68k/include: cpu.h
sys/arch/powerpc/include: cpu.h
sys/arch/sh/include: cpu.h
sys/arch/sparc/include: cpu.h
sys/arch/sparc64/include: cpu.h
sys/arch/vax/include: cpu.h
sys/kern : sched_bsd.c
Log message:
Add a macro that clears the want_resched flag that need_resched sets.
Right now when mi_switch picks up the same proc, we didn't clear the
flag which would mean that every time we service an AST we would attempt
a context switch. For some architectures, amd64 being probably the
most extreme, that meant attempting to context switch for every
trap and interrupt.
Now we clear_resched explicitly after every context switch, even if it
didn't do anything. Which also allows us to remove some more code
in cpu_switchto (not done yet).
miod@ ok