Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Dec 2023 00:45:32 GMT
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 358453ce9bdd - main - iichid(4): Switch taskqueue to "fast"
Message-ID:  <202312270045.3BR0jWmJ085650@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by mav:

URL: https://cgit.FreeBSD.org/src/commit/?id=358453ce9bdd99eb69641b02f2d7e29cedecbe27

commit 358453ce9bdd99eb69641b02f2d7e29cedecbe27
Author:     Alexander Motin <mav@FreeBSD.org>
AuthorDate: 2023-12-27 00:36:34 +0000
Commit:     Alexander Motin <mav@FreeBSD.org>
CommitDate: 2023-12-27 00:36:34 +0000

    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
---
 sys/dev/iicbus/iichid.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/iicbus/iichid.c b/sys/dev/iicbus/iichid.c
index 0752521f3884..ff443afbf30a 100644
--- a/sys/dev/iicbus/iichid.c
+++ b/sys/dev/iicbus/iichid.c
@@ -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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202312270045.3BR0jWmJ085650>