diff options
author | 2010-06-29 00:28:14 +0000 | |
---|---|---|
committer | 2010-06-29 00:28:14 +0000 | |
commit | 351c20c593075aab5a3342f59ad7ce1e96b7b1ad (patch) | |
tree | 6b9506388289e1163b5f5d4dfbb65903555678a4 /sys/kern/kern_sysctl.c | |
parent | Clean up iterface stats handling: (diff) | |
download | wireguard-openbsd-351c20c593075aab5a3342f59ad7ce1e96b7b1ad.tar.xz wireguard-openbsd-351c20c593075aab5a3342f59ad7ce1e96b7b1ad.zip |
Eliminate RTHREADS kernel option in favor of a sysctl. The actual status
(not done) hasn't changed, but now it's less work to test things.
ok art deraadt
Diffstat (limited to 'sys/kern/kern_sysctl.c')
-rw-r--r-- | sys/kern/kern_sysctl.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/kern/kern_sysctl.c b/sys/kern/kern_sysctl.c index 4306a15f999..125e8334668 100644 --- a/sys/kern/kern_sysctl.c +++ b/sys/kern/kern_sysctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_sysctl.c,v 1.184 2010/06/19 14:44:44 thib Exp $ */ +/* $OpenBSD: kern_sysctl.c,v 1.185 2010/06/29 00:28:14 tedu Exp $ */ /* $NetBSD: kern_sysctl.c,v 1.17 1996/05/20 17:49:05 mrg Exp $ */ /*- @@ -121,6 +121,8 @@ int (*cpu_cpuspeed)(int *); void (*cpu_setperf)(int); int perflevel = 100; +int rthreads_enabled = 0; + /* * Lock to avoid too many processes vslocking a large amount of memory * at the same time. @@ -557,6 +559,9 @@ kern_sysctl(int *name, u_int namelen, void *oldp, size_t *oldlenp, void *newp, case KERN_CPTIME2: return (sysctl_cptime2(name + 1, namelen -1, oldp, oldlenp, newp, newlen)); + case KERN_RTHREADS: + return (sysctl_int(oldp, oldlenp, newp, newlen, + &rthreads_enabled)); case KERN_CACHEPCT: { int opct, pgs; opct = bufcachepercent; |