diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2022-11-09 10:26:29 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2022-11-09 10:26:29 +0000 |
commit | 00fc8c911502f9b950eeb8e6ff066f91dd5e89ce (patch) | |
tree | bd5f55be3888e4349e50e73cdf88d23ae97b5c98 /sys | |
parent | 4b1c141da98a4c24e8c50a08a39d343c59121b51 (diff) |
Mark sched_yield(2) as NOLOCK.
All the fields accessed in this syscall are protected by the SCHED_LOCK()
so it isn't necessary to wait for another CPU to release the KERNEL_LOCK()
before that.
ok claudio@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/syscalls.master | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/syscalls.master b/sys/kern/syscalls.master index 59f4a97c08d..56baf29dc8c 100644 --- a/sys/kern/syscalls.master +++ b/sys/kern/syscalls.master @@ -1,4 +1,4 @@ -; $OpenBSD: syscalls.master,v 1.235 2022/11/08 11:05:57 mpi Exp $ +; $OpenBSD: syscalls.master,v 1.236 2022/11/09 10:26:28 mpi Exp $ ; $NetBSD: syscalls.master,v 1.32 1996/04/23 10:24:21 mycroft Exp $ ; @(#)syscalls.master 8.2 (Berkeley) 1/13/94 @@ -531,7 +531,7 @@ #else 297 UNIMPL #endif -298 STD { int sys_sched_yield(void); } +298 STD NOLOCK { int sys_sched_yield(void); } 299 STD NOLOCK { pid_t sys_getthrid(void); } 300 OBSOL t32___thrsleep 301 STD NOLOCK { int sys___thrwakeup(const volatile void *ident, \ |