]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
- Add an integer argument to idle to indicate how likely we are to wake
authorJeff Roberson <jeff@FreeBSD.org>
Fri, 25 Apr 2008 05:18:50 +0000 (05:18 +0000)
committerJeff Roberson <jeff@FreeBSD.org>
Fri, 25 Apr 2008 05:18:50 +0000 (05:18 +0000)
commit6c47aaae12ea84af9d94e32796fccb873af36a0e
treeae275695b8c2f48f9a96c11fe4405ef85fe1bc79
parentda28723ecdadd53c99985663adae9c96f049c449
 - Add an integer argument to idle to indicate how likely we are to wake
   from idle over the next tick.
 - Add a new MD routine, cpu_wake_idle() to wakeup idle threads who are
   suspended in cpu specific states.  This function can fail and cause the
   scheduler to fall back to another mechanism (ipi).
 - Implement support for mwait in cpu_idle() on i386/amd64 machines that
   support it.  mwait is a higher performance way to synchronize cpus
   as compared to hlt & ipis.
 - Allow selecting the idle routine by name via sysctl machdep.idle.  This
   replaces machdep.cpu_idle_hlt.  Only idle routines supported by the
   current machine are permitted.

Sponsored by: Nokia
15 files changed:
sys/amd64/amd64/machdep.c
sys/amd64/include/pcpu.h
sys/arm/arm/machdep.c
sys/i386/i386/machdep.c
sys/i386/include/pcpu.h
sys/ia64/ia64/machdep.c
sys/kern/sched_4bsd.c
sys/kern/sched_ule.c
sys/mips/mips/machdep.c
sys/pc98/pc98/machdep.c
sys/powerpc/aim/machdep.c
sys/powerpc/booke/machdep.c
sys/sparc64/sparc64/machdep.c
sys/sun4v/sun4v/machdep.c
sys/sys/proc.h