From nobody Wed Dec 27 00:45:32 2023 X-Original-To: dev-commits-src-main@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 4T0Cbw5TN8z54fqn; Wed, 27 Dec 2023 00:45:32 +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 4T0Cbw4YBVz4NkY; Wed, 27 Dec 2023 00:45:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1703637932; 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=SREZG9Mw2n5YurlI0+9A7jAQ8TbpQRpVX7hg+us6EEE=; b=nfr8Tv4S2dvXPLlfUqlv7MII0VR/2LX+glHFoJVjrQdfmsGCAzrTHaNHnqXQS34xHwd43C ywhyVHibwfJu98YrsrdaC/ZOKtEJ+0HUUQ1Rm7TDpj5IQHgC0x4cDRJKfqg1t9x76LsqN8 +dYSOxoWtWIu2NIi3pv13XtQWiappvj4kQdWdDgTweRK0LnbYj7ix4USos3PKrv+VLMV6s KDGEvZbnxOcs36f/P2r1x0N/5XzYY7n7vixRoZFi45MuEwzYpCwXXDwEcgqWIVF1zAyElk OuU9hKWI7nGDwWKMZtJn1AdcEEBg8Mko5W36I23C/HgLIFdJnU/q0kw/5yUzaA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1703637932; a=rsa-sha256; cv=none; b=mpmXOMTmztHyWnq5KCM9DhWPwmUKAwRoftpnszMBBxbinDySnNB9egMiywGUwok8C0nKKr zcdUbaFqJSMUKMQ+yR3Iv+jotSBLTznF95UUwtJtkr5JaLjfPiGUwBFrNCh714Rd7t5O4J aFXj4/hyh1Qi2u9Z+5ksTmmLzqkQfFLahZzwuZkx673XHFHemTt7++byWUYVZJ4BU1ECrh 6thFs4h+NfeosVKsn31Nyuxp3rIoYtKG7QgBOfggRKj3pRt6SuINKCtp9l+XZkKye+UEoH YkO5vdJpBxj/mwKs1O1SIdDy4QwqH3jeYIKUe89GVRBNQB47xnZTZO5Ae4Dwwg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1703637932; 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=SREZG9Mw2n5YurlI0+9A7jAQ8TbpQRpVX7hg+us6EEE=; b=gCCIZ3x0foxLQNw4DWbF6VN67ZhxrYZtnVcpNbHSs4roPcVzR0VvllMeyQjnWJ00aeTBwj tzWCP3C5RiV005qtC6ao5a8I0IQ2G7+iXvdHxpr4WaNAVgbXdefD/JVzwfy/2huEgStDM3 BQgfCdJnJVO4zeBMZDLk2syXIeu4TqmI/sFfV/7GY40pE9OOxCBPcbtXkAHLNP9bONhRj4 Jg2IR8+3RsBa4CRxusUHFW5iS+8maU6GYxxi/Vky+ZeV/lCgTTzrKSdEAFRsRXD+P0M/R0 27g/mY3ITbhltoCMogUNheaVKWIrz1M2WapSYXlmMSjs8pjniWma75g4tXuwQQ== 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 4T0Cbw3dHSz2xK; Wed, 27 Dec 2023 00:45:32 +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 3BR0jWmg085653; Wed, 27 Dec 2023 00:45:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3BR0jWmJ085650; Wed, 27 Dec 2023 00:45:32 GMT (envelope-from git) Date: Wed, 27 Dec 2023 00:45:32 GMT Message-Id: <202312270045.3BR0jWmJ085650@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Alexander Motin Subject: git: 358453ce9bdd - main - iichid(4): Switch taskqueue to "fast" List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 358453ce9bdd99eb69641b02f2d7e29cedecbe27 Auto-Submitted: auto-generated The branch main has been updated by mav: URL: https://cgit.FreeBSD.org/src/commit/?id=358453ce9bdd99eb69641b02f2d7e29cedecbe27 commit 358453ce9bdd99eb69641b02f2d7e29cedecbe27 Author: Alexander Motin AuthorDate: 2023-12-27 00:36:34 +0000 Commit: Alexander Motin 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);