summaryrefslogtreecommitdiff
path: root/sys/kern/init_sysent.c
diff options
context:
space:
mode:
authorMartin Pelikan <pelikan@cvs.openbsd.org>2015-02-09 13:41:25 +0000
committerMartin Pelikan <pelikan@cvs.openbsd.org>2015-02-09 13:41:25 +0000
commitcc9d0dd1acdbc2bb5eb3f11554ea05ae6f5b3960 (patch)
treeeeea61319c1cad5f47159dd09e784853c4ed1701 /sys/kern/init_sysent.c
parent38cb664e9152d456b8327dade98778d13345b869 (diff)
make sigprocmask(2) not take the kernel lock
Tests on a 4-core CPU show setjmp(3) run four times as fast under load. discussed on tech@ some time ago, now by kettenis and guenther, ok deraadt
Diffstat (limited to 'sys/kern/init_sysent.c')
-rw-r--r--sys/kern/init_sysent.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/init_sysent.c b/sys/kern/init_sysent.c
index edcb7a510c4..ba8df68d0a4 100644
--- a/sys/kern/init_sysent.c
+++ b/sys/kern/init_sysent.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: init_sysent.c,v 1.162 2015/02/09 13:34:49 deraadt Exp $ */
+/* $OpenBSD: init_sysent.c,v 1.163 2015/02/09 13:41:24 pelikan Exp $ */
/*
* System call switch table.
@@ -124,7 +124,7 @@ struct sysent sysent[] = {
sys_sigaction }, /* 46 = sigaction */
{ 0, 0, SY_NOLOCK | 0,
sys_getgid }, /* 47 = getgid */
- { 2, s(struct sys_sigprocmask_args), 0,
+ { 2, s(struct sys_sigprocmask_args), SY_NOLOCK | 0,
sys_sigprocmask }, /* 48 = sigprocmask */
{ 2, s(struct sys_getlogin_args), 0,
sys_getlogin }, /* 49 = getlogin */