From 812fb4a89fc46249c08964142d5f873c51504f04 Mon Sep 17 00:00:00 2001 From: David Xu Date: Sun, 12 Nov 2006 03:18:22 +0000 Subject: Use mi_switch, this should fix loadavg calculation problem in NO_KSE case. --- sys/kern/kern_idle.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/sys/kern/kern_idle.c b/sys/kern/kern_idle.c index 210ffd3ba24c..f66056a26aa4 100644 --- a/sys/kern/kern_idle.c +++ b/sys/kern/kern_idle.c @@ -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 -- cgit v1.2.3