diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2010-06-02 09:59:05 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2010-06-02 09:59:05 +0000 |
commit | 3286375480554ac54f0386804213e41e306f138e (patch) | |
tree | 3e9f28bcdde5af043ef3f44f307f56c3c8986fba /sys/kern/uipc_sem.c | |
parent | c5d27505b62ca791ba4869d856fd027718222fad (diff) | |
download | src-3286375480554ac54f0386804213e41e306f138e.tar.gz src-3286375480554ac54f0386804213e41e306f138e.zip |
Add a facility to dynamically adjust or unconfigure p1003_1b mib.
Use it to allow to tune sem_nsem_max at runtime, only when sem.ko
module is present in kernel.
Requested and tested by: amdmi3
Reviewed by: jhb
MFC after: 3 days
Notes
Notes:
svn path=/head/; revision=208731
Diffstat (limited to 'sys/kern/uipc_sem.c')
-rw-r--r-- | sys/kern/uipc_sem.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/uipc_sem.c b/sys/kern/uipc_sem.c index d9229ead170a..0b8f1327100b 100644 --- a/sys/kern/uipc_sem.c +++ b/sys/kern/uipc_sem.c @@ -976,6 +976,8 @@ ksem_module_destroy(void) sx_destroy(&ksem_dict_lock); mtx_destroy(&ksem_count_lock); mtx_destroy(&sem_lock); + p31b_unsetcfg(CTL_P1003_1B_SEM_VALUE_MAX); + p31b_unsetcfg(CTL_P1003_1B_SEM_NSEMS_MAX); } static int |