From nobody Fri Jan 9 23:28:06 2026 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 4dnycl1cvHz6Mp4h for ; Fri, 09 Jan 2026 23:28:07 +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 "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dnyck4RMxz3nWR for ; Fri, 09 Jan 2026 23:28:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1768001286; 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=tXnxyok8PPbW5X87j9nYuZ4XFTq6xMKxFwZRKJg5EfM=; b=ZSkwtbB7fj+AmFUMdBp6MqiIcMrvi11hnheMrmTrPpzSuizzjngskXzswxnE+UzKynf3MK y6AM3nF9HPf94rPasCIsKsE8w4y2/FMkVfSlTYgWmUT+B2Wl2ICQSTVdc0ZYljPktwfed5 EcWetOq3tVpxefasTWWBMGnlowION+FNo6Gspe7j/VlnmX9h65+6G1gh2su1EMJ/f/DxlG FG6pGjm7EnKexSzGC8m5C++7teRwGDZa1vxeCOhxpHvy55fCYQfG3agjjPjxi1w1/b/lzx m0BYfVhwGjpUooIwCK6c2/i/H7Xrl2e/4jUFdglu3qVpxcYgN545pzzSNdgK/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1768001286; 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=tXnxyok8PPbW5X87j9nYuZ4XFTq6xMKxFwZRKJg5EfM=; b=vbnkJXGUjgNTkrjZFjoFIjuzgTAQz/E2ft/j/cyidxxsycRo1JRXQ7ZBDuLqWZVFuKWoUf Clcfg8yVIaww2VphX2CXHshb2wDN7LxzUfNgItcTp8Wbnj5huMUWUcBKlANvFGlqLKxaEg RgYA/fzXlbJUcJnOqoHE5vT5Y3kSrkPeOy6PJNkhZoMs147ShsiU2ZPmEkOjM4qPHmdsam UlfHmvfWBgtDRp0WIbWBepWpJAnM4LSJy/I2iZsuJwmsdzlaf0zucz6a/wlVfGxPsCMSxJ NDV+7eufweUA7WnOnN+Qw8zzpRhQx29g849JxQvEbHh5/1I/iEyZImewz4D9Hg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1768001286; a=rsa-sha256; cv=none; b=nGIvxd7Tiw/TdO7knXVAqh8jb+7mFWK3OrBgI+LnnBFKtgyBHJ1SCpsRiZ2t+eQorGGQBz Ec0SUOMUoTtMII9FmQnOKLPvffplC1tExZEz6sp827sksDdYsPdRPwysr9q7YOLiQGTWPb /4VthX4B+HbTWpemvvL+VCT/Cxaxi+Z+gTSXTgDOWb3gqN5aD9F7vzrANwXKEX944myluI cH0qdzQbP/VGNObQW1qsCAu0KcY6UeI8jd4UzVRzxC6BOLjCOEtO3cvJhdy9NhJcNAwq8H v7e8JuF6FwI8jA09WkpFPBRMWylTEccGVDuqYkQcMrAp+YGUujWt+u3T4IhJfQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dnyck3yN1zTZb for ; Fri, 09 Jan 2026 23:28:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 31c4b by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 09 Jan 2026 23:28:06 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Christos Margiolis Subject: git: 0c7eb49acd36 - stable/15 - sound: Merge chn_intr() with chn_intr_locked() 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: christos X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 0c7eb49acd3666f1db868a5c05ebd91ef7c5499a Auto-Submitted: auto-generated Date: Fri, 09 Jan 2026 23:28:06 +0000 Message-Id: <69618f06.31c4b.20e62b2@gitrepo.freebsd.org> The branch stable/15 has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=0c7eb49acd3666f1db868a5c05ebd91ef7c5499a commit 0c7eb49acd3666f1db868a5c05ebd91ef7c5499a Author: Christos Margiolis AuthorDate: 2026-01-02 17:20:41 +0000 Commit: Christos Margiolis CommitDate: 2026-01-09 23:27:25 +0000 sound: Merge chn_intr() with chn_intr_locked() There is no scenario where chn_intr() is called with the channel lock already held. No functional change intended. Sponsored by: The FreeBSD Foundation MFC after: 1 week Reviewed by: kib, markj Differential Revision: https://reviews.freebsd.org/D53854 (cherry picked from commit 0794365d5d3cc93940b873553382288a2a2c88c4) --- sys/dev/sound/pcm/channel.c | 20 ++------------------ sys/dev/sound/pcm/channel.h | 1 - 2 files changed, 2 insertions(+), 19 deletions(-) diff --git a/sys/dev/sound/pcm/channel.c b/sys/dev/sound/pcm/channel.c index 7c3f0e3dc9f0..011dc1427c2e 100644 --- a/sys/dev/sound/pcm/channel.c +++ b/sys/dev/sound/pcm/channel.c @@ -581,30 +581,14 @@ chn_read(struct pcm_channel *c, struct uio *buf) } void -chn_intr_locked(struct pcm_channel *c) +chn_intr(struct pcm_channel *c) { - - CHN_LOCKASSERT(c); - + CHN_LOCK(c); c->interrupts++; - if (c->direction == PCMDIR_PLAY) chn_wrintr(c); else chn_rdintr(c); -} - -void -chn_intr(struct pcm_channel *c) -{ - - if (CHN_LOCKOWNED(c)) { - chn_intr_locked(c); - return; - } - - CHN_LOCK(c); - chn_intr_locked(c); CHN_UNLOCK(c); } diff --git a/sys/dev/sound/pcm/channel.h b/sys/dev/sound/pcm/channel.h index 0b17c4a130a7..6415f5c88984 100644 --- a/sys/dev/sound/pcm/channel.h +++ b/sys/dev/sound/pcm/channel.h @@ -298,7 +298,6 @@ int chn_oss_setorder(struct pcm_channel *, unsigned long long *); int chn_oss_getmask(struct pcm_channel *, uint32_t *); void chn_resetbuf(struct pcm_channel *c); -void chn_intr_locked(struct pcm_channel *c); void chn_intr(struct pcm_channel *c); int chn_abort(struct pcm_channel *c);