From nobody Wed Apr 26 15:16:21 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 4Q62Wn2vQnz46dtB; Wed, 26 Apr 2023 15:16:21 +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 4Q62Wn2L1Pz3Jgm; Wed, 26 Apr 2023 15:16:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1682522181; 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=ASkPC1LTeMOgx/9QFwFk96FwOff2PCxPJLN65r/LuNo=; b=NUa51nOBIkCVW7skWPIN/gpoaCLw0mKHltCMKM/NzYCnAVEjmWKYrz6w+Fy1C3dMka9VIZ 1QuBrYjZ+2E4UbYgapvgFOfmes5axwS3zw1zdc5c+RZiwp8w74Jk/8SVsvl5Go/QFzEDy4 ZwJOA5WV+FB15Kxa3IebgFd5Fm/Y0smDVZR/MROS/EicvGoBW2a0Y2htHpr1XMRlK0ci7Q qkBnmxWOrBs0DLnRWWz52n8gwU31xzibb7IPAolja/y3Ksen+M0c1zDps1mBtuj+NfyD+c d65vVr0BOXJredhVnPY8oE9j1rzRpgRsbJn/TqbSHVyP2WidQIKh9V8JjyrJnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1682522181; 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=ASkPC1LTeMOgx/9QFwFk96FwOff2PCxPJLN65r/LuNo=; b=fRhd/uA4rAE3YBlwK6EsRBU0afKNZ/QlbJp7C3XV9ryRX42jRKSHUxjHHxkSAvwdvz68wc jqj1QM63s+iVP5BiwLI9sfgIo3zsHVZD6Vl6pJ8zCLOFpt8eVXA5VxuRLkPdRcHq4nDHKA UDVXBaQBNmoznK/6QyGvCXTr1e05WooZtwdDz6e3WDq43dmGp5LXw0O+uF2iBfh3Iii/fO WI1PyEletM8k0a4TfF47GlDe5JsSf77Pw1tkOg+hYAlf8fhufSfVGbxTif9tt/Artx9eCg ExOX1XD6E5DOyoBLeKsFKI15/jQ0FeFh6D9PJ0Al81bIMggYCeEkk0YWshd/pQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1682522181; a=rsa-sha256; cv=none; b=LcD6fXHS6Nt/cxRLdHxupGnouhZRaYc7W9CChwlqaidNz4djU1Xrn33yvnXbS6tHW5+qTQ qnNqhdbPPY89N4yNVAMPhnHQ1oZ0Tc+ttGGWhAA5hEwOsT0F1x+7UdOWv0KAgns/sShUC7 F/WUrnsZ0ekMeolLTv6DvU/RX8DOXZpGz4x96NRQAcruE0pbsWQUDv70GD1moi6cawwd4i g8gDMiAU/2z83obdBC6Rk4TwMsNe1FN4Z/B9kapquEosOSsgtFDXT4Mwm72tp2ZvItl2Su +gNLmWyisUNVkkrNlZgTBdE68zP9k1+ydNhtlX1Zqy6ZI0NNJNVoqBxjQIXHWQ== 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 4Q62Wn1HLrzfMT; Wed, 26 Apr 2023 15:16:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 33QFGL9u087031; Wed, 26 Apr 2023 15:16:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 33QFGLmh087030; Wed, 26 Apr 2023 15:16:21 GMT (envelope-from git) Date: Wed, 26 Apr 2023 15:16:21 GMT Message-Id: <202304261516.33QFGLmh087030@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: 2c0209a2ca43 - main - callout: Remove an unneeded MTX_NEW 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: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2c0209a2ca43dedab45dc41d9707359d063857b8 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=2c0209a2ca43dedab45dc41d9707359d063857b8 commit 2c0209a2ca43dedab45dc41d9707359d063857b8 Author: Mark Johnston AuthorDate: 2023-04-26 15:15:56 +0000 Commit: Mark Johnston CommitDate: 2023-04-26 15:15:56 +0000 callout: Remove an unneeded MTX_NEW Reported by: hselasky Fixes: 78cfa762ebf2 ("callout: Move per-CPU callout state into the dpcpu region") --- sys/kern/kern_timeout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/kern_timeout.c b/sys/kern/kern_timeout.c index 374e8f2b172a..5062ae82e016 100644 --- a/sys/kern/kern_timeout.c +++ b/sys/kern/kern_timeout.c @@ -321,7 +321,7 @@ callout_cpu_init(struct callout_cpu *cc, int cpu) { int i; - mtx_init(&cc->cc_lock, "callout", NULL, MTX_SPIN | MTX_NEW); + mtx_init(&cc->cc_lock, "callout", NULL, MTX_SPIN); cc->cc_callwheel = malloc_domainset(sizeof(struct callout_list) * callwheelsize, M_CALLOUT, DOMAINSET_PREF(pcpu_find(cpu)->pc_domain), M_WAITOK);