Received: by mail.netbsd.org (Postfix, from userid 605) id 981FE84F5B; Wed, 1 Mar 2023 08:18:05 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 8CDE384F4B for ; Wed, 1 Mar 2023 08:18:04 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id Zq1zZWOp0mjm for ; Wed, 1 Mar 2023 08:18:04 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 1C67E84EE6 for ; Wed, 1 Mar 2023 08:18:04 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 19A61FA90; Wed, 1 Mar 2023 08:18:04 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Wed, 1 Mar 2023 08:18:04 +0000 From: "Taylor R Campbell" Subject: CVS commit: src/sys/arch/mips/mips To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20230301081804.19A61FA90@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Taylor R Campbell" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: riastradh Date: Wed Mar 1 08:18:04 UTC 2023 Modified Files: src/sys/arch/mips/mips: locore.S Log Message: mips: Optimization: Omit needless membar when triggering softint. When we are triggering a softint, it can't already hold any mutexes. So any path to mutex_exit(mtx) must go via mutex_enter(mtx), which is always done with atomic r/m/w, and we need not issue any explicit barrier between ci->ci_curlwp = softlwp and a potential load of mtx->mtx_owner in mutex_exit. PR kern/57240 XXX pullup-8 XXX pullup-9 XXX pullup-10 To generate a diff of this commit: cvs rdiff -u -r1.229 -r1.230 src/sys/arch/mips/mips/locore.S Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.