diff options
Diffstat (limited to 'sys/kern/kern_shutdown.c')
-rw-r--r-- | sys/kern/kern_shutdown.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/kern/kern_shutdown.c b/sys/kern/kern_shutdown.c index d0cfe6e..9bf66a8 100644 --- a/sys/kern/kern_shutdown.c +++ b/sys/kern/kern_shutdown.c @@ -242,7 +242,7 @@ boot(int howto) waittime = 0; printf("\nsyncing disks... "); - sync(thread0, NULL); + sync(&thread0, NULL); /* * With soft updates, some buffers that are @@ -267,12 +267,11 @@ boot(int howto) if (nbusy < pbusy) iter = 0; pbusy = nbusy; - sync(thread0, NULL); + sync(&thread0, NULL); if (curthread != NULL) { DROP_GIANT(); for (subiter = 0; subiter < 50 * iter; subiter++) { mtx_lock_spin(&sched_lock); - setrunqueue(curthread); curthread->td_proc->p_stats->p_ru.ru_nvcsw++; mi_switch(); /* Allow interrupt threads to run */ mtx_unlock_spin(&sched_lock); |