From nobody Fri Jan 19 16:37:50 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 4TGlf63dkmz56rnm; Fri, 19 Jan 2024 16:37:50 +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 4TGlf62hHkz46Ss; Fri, 19 Jan 2024 16:37:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705682270; 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=iGagbPIaADdnWK43wu3lOkl5GQ0GdUjLG+bHaeZiZrk=; b=f60Srw13r3l/f5aOBEa5LnWAXdBPWR2Vp3K/Q7BMSdvXD3KLdjntEkZYVK047P8PzJckPA iZiwzByWZhcAmaaScnSa7ihPMdFD3phah6RM1eUunczEsuWH/k+mnfrb9sco5jxmhk+g/r R10gAnpkgYwAqGxtiWCx1UKgOq2IpdgbnYXg7blctZDmdxqBwBZuHmW7yjbRaghrlvlJ5P 50B3t2sXf0JJyq3aiW3Ugt3CpvOxDxNMs0Af03CRHnqowC5MJ4QU/e3xY1yyLtD95AWh26 BWxC7Cowk48wQzUg2lpGvv448ucaBznNjNnHV4GfRse86d4MG9Vq3puv8RLGvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705682270; 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=iGagbPIaADdnWK43wu3lOkl5GQ0GdUjLG+bHaeZiZrk=; b=BVfueaGDmmMSc7QncSgCY9oQQZFY5X8sonmYbN05QfbBWI1E9EmpJZ8d6l/viPrPfgfSwm 6b1qm+zeT3QKkl85XSKYYgPjXRDTCJLuLmJPc1F69VygeI4GPxlZQUosChgETidg789KvL 82+Y8AWRY5GhfOQS4eCwodT+XRavz48Frh6XtJwf0HGl/+cu05noPRb5VPYUKQ6JNYOpKr 1Qg/I9c5FJZrkYptv7Jhw3dSx7BZB0KIXu/0qbTPBsm1pX9g6ELY72F8t6czM+E5nZ3vXR +cCMJyY28NEOFsqcorhqCYuGvZNstGQzDvNkWK/fafSzFFGO0HTXV6ILpeumvQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1705682270; a=rsa-sha256; cv=none; b=taCZMTNlaBqsMQDxwBVmFcbxfkICiswyGX444ey6GyyM42O5iq37vIcGXbS4XynXt/kbeJ alvJXGdTaQiXi1LPJsHmWlR0n4JqQkYFzGmW5P/sQ/aKBqxf8y5WLXXXfj/EFjpNUlZvha lq3nfanZiAyWoXzoPkEq4eCrGa15yHBqTfBx7x0Yadv0ZvPJOm+M9u/nvQvuN0iJx5xEuS iD9PsRdQO82IxEUmcdkv2QAJ9K5pRsbpUhg2Ng5h5t1NvCyLVItrUGRP9CSeoSvtILifSk URVX7loPPXiCrQN91ZFcNuY7nrjw3sRfAAMIq0lMbcW+RWCxUGkoSTcw+NW8fQ== 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 4TGlf61p1Wzyq0; Fri, 19 Jan 2024 16:37:50 +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 40JGbo4o027071; Fri, 19 Jan 2024 16:37:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 40JGbofX027068; Fri, 19 Jan 2024 16:37:50 GMT (envelope-from git) Date: Fri, 19 Jan 2024 16:37:50 GMT Message-Id: <202401191637.40JGbofX027068@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: 17a6b07e0839 - stable/14 - 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/14 X-Git-Reftype: branch X-Git-Commit: 17a6b07e0839df130ea3d4b9be4cc9a8c3ce6c8a Auto-Submitted: auto-generated The branch stable/14 has been updated by mav: URL: https://cgit.FreeBSD.org/src/commit/?id=17a6b07e0839df130ea3d4b9be4cc9a8c3ce6c8a commit 17a6b07e0839df130ea3d4b9be4cc9a8c3ce6c8a Author: Alexander Motin AuthorDate: 2023-12-27 00:36:34 +0000 Commit: Alexander Motin CommitDate: 2024-01-19 16:34:58 +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 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);