mirror of
https://github.com/opnsense/src.git
synced 2026-06-04 22:32:43 -04:00
iichid(4): Switch taskqueue to "fast"
While "fast" taskqueue may be more expensive due to spinlock use, when used mainly for timeout tasks it allows to avoid extra context switches to and from callout thread, that is even more expensive. MFC after: 1 month
This commit is contained in:
parent
a8f80c0c16
commit
358453ce9b
1 changed files with 1 additions and 1 deletions
|
|
@ -1134,7 +1134,7 @@ iichid_attach(device_t dev)
|
|||
|
||||
TASK_INIT(&sc->suspend_task, 0, iichid_suspend_task, sc);
|
||||
#ifdef IICHID_SAMPLING
|
||||
sc->taskqueue = taskqueue_create("iichid_tq", M_WAITOK | M_ZERO,
|
||||
sc->taskqueue = taskqueue_create_fast("iichid_tq", M_WAITOK | M_ZERO,
|
||||
taskqueue_thread_enqueue, &sc->taskqueue);
|
||||
TIMEOUT_TASK_INIT(sc->taskqueue, &sc->sampling_task, 0,
|
||||
iichid_sampling_task, sc);
|
||||
|
|
|
|||
Loading…
Reference in a new issue