Fix taskqueues to truely work on SMP systems.
authorSimon Schubert <corecode@dragonflybsd.org>
Sat, 24 Feb 2007 04:36:21 +0000 (04:36 +0000)
committerSimon Schubert <corecode@dragonflybsd.org>
Sat, 24 Feb 2007 04:36:21 +0000 (04:36 +0000)
commit0bb018c655c4a49226ff0d06c2ff7dc762d99ec8
tree121b6705488ecc127d7ec4caf89f508b66f55401
parentc6a33bd9daf14e06378acacb6e7e32176db31f6c
Fix taskqueues to truely work on SMP systems.

The taskqueue_task_td threads were created with kthread_create(), which
defaults to creating the thread on the current CPU.  Achieve correct
operation by using lwkt_create(), which allows specification of the
CPU the thread should run on.

Add a comment about the suggested usage of task structures.
sys/kern/subr_taskqueue.c