taskqueue - Improve _start_threads, refactor code
commit6b26ab14487d24407e2ddbb5a33147badae41622
authorAlex Hornung <ahornung@gmail.com>
Fri, 2 Oct 2009 12:20:30 +0000 (2 13:20 +0100)
committerAlex Hornung <ahornung@gmail.com>
Fri, 2 Oct 2009 12:50:09 +0000 (2 13:50 +0100)
treecd7271c0122acdc99fc6eb6be6260661ae5c95e2
parent2c739e4c25d9184e16ea9bed4400fe4eb5524567
taskqueue - Improve _start_threads, refactor code

* Change taskqueue_start_threads to take another argument, ncpu, which
  specifies on what cpu the thread(s) should be created.
  If ncpu is <= -1 and count is > 1, then each of the count threads is
  allocated in a round robin fashion to each cpu.

* Switch the per-cpu taskqueues to use the new taskqueue threads API.

Discussed-with: Simon "corecode" Schubert
sys/kern/subr_taskqueue.c
sys/sys/taskqueue.h