taskqueue -- Register swi_taskq_mp as an MP-safe SWI.
authorVenkatesh Srinivas <me@endeavour.zapto.org>
Wed, 28 Dec 2011 01:38:12 +0000 (17:38 -0800)
committerVenkatesh Srinivas <me@endeavour.zapto.org>
Wed, 28 Dec 2011 01:38:12 +0000 (17:38 -0800)
The swi_taskqueue for mpsafe tasks was still getting the mplock. Remove it.
There are no real users of this queue in kernel though.

sys/kern/subr_taskqueue.c

index aced904..43a0185 100644 (file)
@@ -401,7 +401,8 @@ TASKQUEUE_DEFINE(swi, taskqueue_swi_enqueue, 0,
  * related: platform/XXX/isa/ipl_funcs.c
  */
 TASKQUEUE_DEFINE(swi_mp, taskqueue_swi_enqueue, 0,
-    register_swi(SWI_TQ, taskqueue_swi_mp_run, NULL, "swi_mp_taskq", NULL, -1));
+    register_swi_mp(SWI_TQ, taskqueue_swi_mp_run, NULL, "swi_mp_taskq", NULL, 
+                   -1));
 
 struct taskqueue *taskqueue_thread[MAXCPU];