NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

PR/57240 CVS commit: src/sys/arch/sparc64/sparc64



The following reply was made to PR kern/57240; it has been noted by GNATS.

From: "Taylor R Campbell" <riastradh%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc: 
Subject: PR/57240 CVS commit: src/sys/arch/sparc64/sparc64
Date: Wed, 1 Mar 2023 08:18:39 +0000

 Module Name:	src
 Committed By:	riastradh
 Date:		Wed Mar  1 08:18:39 UTC 2023
 
 Modified Files:
 	src/sys/arch/sparc64/sparc64: locore.s
 
 Log Message:
 sparc64: 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.432 -r1.433 src/sys/arch/sparc64/sparc64/locore.s
 
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.
 


Home | Main Index | Thread Index | Old Index