summaryrefslogtreecommitdiff
path: root/usr.bin/script/script.c
diff options
context:
space:
mode:
authorriastradh <riastradh@NetBSD.org>2022-02-12 17:17:53 +0000
committerriastradh <riastradh@NetBSD.org>2022-02-12 17:17:53 +0000
commit2351c5c925a1ec5fd704e0759ea08abc3b823945 (patch)
tree3fe9c4e6bf85fe6e274788460eefd25b05f3dcc9 /usr.bin/script/script.c
parent166a6ba2ca5aa51c68451c5f962def58e19fd05e (diff)
__cpu_simple_lock(9): Omit needless barriers in init.
It is, and always has been, the caller's responsibility to ensure the lock is initialized before it can be used -- otherwise the memory could hold garbage; it is nonsensical to even attempt locking operations on it before initialization. So there's no need to issue explicit barriers here. The barrier seems to have been introduced in sys/arch/alpha/alpha/lock_machdep.c rev. 1.1 (since moved to inline asm in alpha/include/lock.h) and then copied & pasted into several other architectures.
Diffstat (limited to 'usr.bin/script/script.c')
0 files changed, 0 insertions, 0 deletions