summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2003-06-27 22:39:14 +0000
committerpeter <peter@FreeBSD.org>2003-06-27 22:39:14 +0000
commit6df8dff079da162cd074e7e158f9132366f08c00 (patch)
tree64c053408cdbfcf347889812bb9208082ada0b18 /sys/kern
parent4abd2e77076d2c44c7c5bf99ba0845275e97a513 (diff)
downloadFreeBSD-src-6df8dff079da162cd074e7e158f9132366f08c00.zip
FreeBSD-src-6df8dff079da162cd074e7e158f9132366f08c00.tar.gz
Tidy up leftover lazy_switch instrumentation that is no longer needed.
This cleans up some #ifdef hell.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_synch.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c
index be11257..6444b97 100644
--- a/sys/kern/kern_synch.c
+++ b/sys/kern/kern_synch.c
@@ -72,9 +72,6 @@ __FBSDID("$FreeBSD$");
#endif
#include <machine/cpu.h>
-#ifdef SWTCH_OPTIM_STATS
-#include <machine/md_var.h>
-#endif
static void sched_setup(void *dummy);
SYSINIT(sched_setup, SI_SUB_KICK_SCHEDULER, SI_ORDER_FIRST, sched_setup, NULL)
@@ -525,10 +522,6 @@ mi_switch(void)
newtd = choosethread();
if (td != newtd)
cpu_switch(td, newtd); /* SHAZAM!! */
-#ifdef SWTCH_OPTIM_STATS
- else
- stupid_switch++;
-#endif
#else
cpu_switch(); /* SHAZAM!!*/
#endif
OpenPOWER on IntegriCloud