Date: Wed, 26 Apr 2023 15:16:21 GMT From: Mark Johnston <markj@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 2c0209a2ca43 - main - callout: Remove an unneeded MTX_NEW Message-ID: <202304261516.33QFGLmh087030@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=2c0209a2ca43dedab45dc41d9707359d063857b8 commit 2c0209a2ca43dedab45dc41d9707359d063857b8 Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2023-04-26 15:15:56 +0000 Commit: Mark Johnston <markj@FreeBSD.org> 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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202304261516.33QFGLmh087030>