Use mi_switch, this should fix loadavg calculation problem in NO_KSE case.

This commit is contained in:
David Xu 2006-11-12 03:18:22 +00:00
parent 9d6220e622
commit 812fb4a89f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=164211

View File

@ -122,12 +122,7 @@ idle_proc(void *dummy)
#ifdef SMP
idle_cpus_mask &= ~mycpu;
#endif
#ifdef KSE
mi_switch(SW_VOL, NULL);
#else
if ((td = choosethread()) != curthread)
mi_switch(SW_VOL, td);
#endif
#ifdef SMP
idle_cpus_mask |= mycpu;
#endif