From nobody Fri Jan 19 17:09:55 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TGmM76SXxz56wj7; Fri, 19 Jan 2024 17:09:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TGmM73FsYz4K8R; Fri, 19 Jan 2024 17:09:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705684195; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=HpdV95tCSzuI21EXjLMzFIgiehIlX1TX8j9ivr3aQng=; b=YbxbjRZSbrCFv30k+UHbjo52nKnt3y1YRIGznu0DjfGVXeevHybKJJw5w+XIXCuwmMsPcu RI0czLHZTAblRIKfYepNOeFa6VWuRfJIsVgYGKNq9TPgAo9saM5yY1S05IoGsY9qKQ8/tN NscG0nE4Lj8wTCGzULy6CRJNB6kjkjAumCOuqOQ+lPpCBFw5m+xnNli8L1lMVr8TdDKYE1 bbDkOE6gfHsaQ3X+yIe3Mju6rZU2X6dNt7ZRraaWlXp8a7bLftU2wFAGa/B3laKagiHf2V CJ/flMeZJdqUrQX21NfVxo6NjYkaunVp78XOUHz5y2zO9GwvWrGtQO23Tf3+fA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705684195; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=HpdV95tCSzuI21EXjLMzFIgiehIlX1TX8j9ivr3aQng=; b=Jhj61IUH9EM0eSUMKF/F7Zc/2POevaT0wuOj9PRhaKnclUv4/e+Fyxl34054Lgi9/KCk5r WmCOlDZdtn7ONsQtK7BqM1SYB0h587jhs1hWyEgj8kGtFrGc844esxdiiMHuSvpwg/vK0W 6Q2lGP1E8iutyflF0D1Wqh9RjlHdFCfyGSuKKupkfYvx72O9Y+a5hlVUK1oTK2ItArg7Mk fseX1XCHXWWxy1F/l2+m1YlY3FnWnhspf5ifTRW3XRm4o5bcssChON6vaZijtucu84Xe/y fkC04jBA0PmM2TofMGMKLpEDCxFgRzqTjz22iZ5u06D2Iy0bWGRzCcoaaaAA4g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1705684195; a=rsa-sha256; cv=none; b=mQCB9Sbt7n6VCKlqFw6dWnTAO9YLyjGSQ97emkytmKUtp9nEKxdBhdXTHmjvPUun4xg6FA y7OjuyHgqF9Pj9KoydaXPDeLRlR7meiM6ThNOxpTirlr4cEy5mE6wUJiXR73vjSyEZFEah 2GqRAyLdPNHp4Hm/DfpJDP6qcALzt6+7RZB3WpyvLXtVYGv9grel1wRxDaRt3empsH5cgu vz+ZY1rofdWSog6CKc/7zGp4/Ck8iBWXl863iGPSvxMcd3XhtQ3AXJJy7ZGIMxZxZ3xwzX PZ/SinCCwnrfVu5cyJLuMJ+EoxHHqp5dLo7MTGRhR9Lg21sE0ZYgkYHpPDyYog== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TGmM72N5fz10QF; Fri, 19 Jan 2024 17:09:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 40JH9tDY079754; Fri, 19 Jan 2024 17:09:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 40JH9tAe079751; Fri, 19 Jan 2024 17:09:55 GMT (envelope-from git) Date: Fri, 19 Jan 2024 17:09:55 GMT Message-Id: <202401191709.40JH9tAe079751@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Alexander Motin Subject: git: 0e58c237cb32 - stable/13 - iichid(4): Switch taskqueue to "fast" List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mav X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 0e58c237cb321cf20bae5422c9012b15a1cac740 Auto-Submitted: auto-generated The branch stable/13 has been updated by mav: URL: https://cgit.FreeBSD.org/src/commit/?id=0e58c237cb321cf20bae5422c9012b15a1cac740 commit 0e58c237cb321cf20bae5422c9012b15a1cac740 Author: Alexander Motin AuthorDate: 2023-12-27 00:36:34 +0000 Commit: Alexander Motin CommitDate: 2024-01-19 17:08:14 +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 (cherry picked from commit 358453ce9bdd99eb69641b02f2d7e29cedecbe27) --- 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 a0e11b8500b6..da14918f0b52 100644 --- a/sys/dev/iicbus/iichid.c +++ b/sys/dev/iicbus/iichid.c @@ -1129,7 +1129,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);