From 1d79f1bb9a88b559b5633a37904617fa64cf5b8d Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Mon, 25 Jun 2001 18:30:42 +0000 Subject: - Sort includes. - Count the context switches during shutdown when we give ithreads a chance to run as volutary context switches. Submitted by: bde (2) --- sys/kern/kern_shutdown.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'sys') diff --git a/sys/kern/kern_shutdown.c b/sys/kern/kern_shutdown.c index 52ded6468c03..d971ba4ebe27 100644 --- a/sys/kern/kern_shutdown.c +++ b/sys/kern/kern_shutdown.c @@ -46,22 +46,21 @@ #include #include -#include #include #include -#include -#include -#include +#include +#include +#include #include #include #include -#include -#include -#include /* smp_active, cpuid */ +#include +#include +#include +#include /* smp_active */ #include -#include #include -#include +#include #include #include @@ -259,6 +258,7 @@ boot(int howto) for (subiter = 0; subiter < 50 * iter; subiter++) { mtx_lock_spin(&sched_lock); setrunqueue(curproc); + curproc->p_stats->p_ru.ru_nvcsw++; mi_switch(); /* Allow interrupt threads to run */ mtx_unlock_spin(&sched_lock); DELAY(1000); -- cgit v1.3