Index: sys/net/flowtable.c =================================================================== --- sys/net/flowtable.c (revision 198261) +++ sys/net/flowtable.c (working copy) @@ -930,16 +930,20 @@ for (i = 0; i <= mp_maxid; i++) { if (CPU_ABSENT(i)) continue; + + if (smp_started == 1) { + thread_lock(curthread); + sched_bind(curthread, i); + thread_unlock(curthread); + } - thread_lock(curthread); - sched_bind(curthread, i); - thread_unlock(curthread); - flowtable_free_stale(ft, rt); - thread_lock(curthread); - sched_unbind(curthread); - thread_unlock(curthread); + if (smp_started == 1) { + thread_lock(curthread); + sched_unbind(curthread); + thread_unlock(curthread); + } } } else { flowtable_free_stale(ft, rt);