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);