summaryrefslogtreecommitdiffstats
path: root/sys/kern/uipc_socket.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2003-10-29 14:40:41 +0000
committerbde <bde@FreeBSD.org>2003-10-29 14:40:41 +0000
commit6bce6afbe7fdd1d2d6f8d6d50002cc47fdfa3b96 (patch)
treeecbcad096e75390f5b59a0145e94d46e33b45610 /sys/kern/uipc_socket.c
parent86956669e331575dc91197028b2d219b1919b54f (diff)
downloadFreeBSD-src-6bce6afbe7fdd1d2d6f8d6d50002cc47fdfa3b96.zip
FreeBSD-src-6bce6afbe7fdd1d2d6f8d6d50002cc47fdfa3b96.tar.gz
Removed sched_nest variable in sched_switch(). Context switches always
begin with sched_lock held but not recursed, so this variable was always 0. Removed fixup of sched_lock.mtx_recurse after context switches in sched_switch(). Context switches always end with this variable in the same state that it began in, so there is no need to fix it up. Only sched_lock.mtx_lock really needs a fixup. Replaced fixup of sched_lock.mtx_recurse in fork_exit() by an assertion that sched_lock is owned and not recursed after it is fixed up. This assertion much match the one in mi_switch(), and if sched_lock were recursed then a non-null fixup of sched_lock.mtx_recurse would probably be needed again, unlike in sched_switch(), since fork_exit() doesn't return to its caller in the normal way.
Diffstat (limited to 'sys/kern/uipc_socket.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud