--- src/sys/kern/kern_timeout.c 2005/06/18 12:56:41 1.19 +++ src/sys/kern/kern_timeout.c 2005/11/04 19:28:21 1.20 @@ -177,9 +177,8 @@ swi_softclock_setup(void *arg) * be preempted by normal interrupts. */ lwkt_create(softclock_handler, sc, NULL, - &sc->thread, TDF_STOPREQ|TDF_INTTHREAD, -1, + &sc->thread, TDF_STOPREQ|TDF_INTTHREAD, cpu, "softclock %d", cpu); - lwkt_setpri(&sc->thread, TDPRI_SOFT_NORM); #if 0 /* * Do not make the thread preemptable until we clean up all @@ -262,6 +261,8 @@ softclock_handler(void *arg) int mpsafe = 0; #endif + lwkt_setpri_self(TDPRI_SOFT_NORM); + sc = arg; crit_enter(); loop: