freebsd-nq/sys
Bruce Evans 40a3fa2d59 (1) Removed the bogus condition "p->p_pid != 1" on calling sched_exit()
from exit1().  sched_exit() must be called unconditionally from exit1().
    It was called almost unconditionally because the only exits on system
    shutdown if at all.

(2) Removed the comment that presumed to know what sched_exit() does.
    sched_exit() does different things for the ULE case.  The call became
    essential when it started doing load average stuff, but its caller
    should not know that.

(3) Didn't fix bugs caused by bitrot in the condition.  The condition was
    last correct in rev.1.208 when it was in wait1().  There p was spelled
    curthread->td_proc and was for the waiting parent; now p is for the
    exiting child.  The condition was to avoid lowering init's priority.
    It should be in sched_exit() itself.  Lowering of priorities is broken
    in other ways in at least the 4BSD scheduler, and doing it for init
    causes less noticeable problems than doing it for for shells.

Noticed by:	julian (1)
2004-06-21 14:49:50 +00:00
..
alpha Backed out previous commit. Blind substitution of dev_t by `struct cdev *' 2004-06-20 03:52:50 +00:00
amd64 - Simplify pmap_remove_pages(), eliminating unnecessary indirection. 2004-06-20 20:57:06 +00:00
arm Fix compilation for Xscale. 2004-06-19 20:50:50 +00:00
boot Document the possibility of setting default values for 2004-06-20 15:58:24 +00:00
cam Second half of the dev_t cleanup. 2004-06-17 17:16:53 +00:00
coda Second half of the dev_t cleanup. 2004-06-17 17:16:53 +00:00
compat Add stub for Linux SOUND_MIXER_READ_RECMASK, required by some Linux sound 2004-06-18 14:36:24 +00:00
conf Fix the following error: 2004-06-20 22:32:19 +00:00
contrib Add missing <sys/module.h> include. 2004-06-18 08:53:55 +00:00
crypto Use __FBSDID(). 2004-06-14 00:38:54 +00:00
ddb Fixed DDB_NOKLDSYM on amd64's: 2004-05-18 05:30:06 +00:00
dev Prevent the rp driver from panic'ing on first access and make at 2004-06-21 13:02:25 +00:00
fs Reduce a fair bit of the atomics because we are now called with a 2004-06-18 08:08:47 +00:00
geom Don't hold topology lock while calling g_gate_release(). 2004-06-21 09:12:08 +00:00
gnu Fixed misformatting of code and breaking of a comment in previous commit. 2004-06-20 03:36:31 +00:00
i4b Do the dreaded s/dev_t/struct cdev */ 2004-06-16 09:47:26 +00:00
i386 - Simplify pmap_remove_pages(), eliminating unnecessary indirection. 2004-06-20 20:57:06 +00:00
ia64 Backed out previous commit. Blind substitution of dev_t by `struct cdev *' 2004-06-20 03:52:50 +00:00
isa Do the dreaded s/dev_t/struct cdev */ 2004-06-16 09:47:26 +00:00
isofs/cd9660 Second half of the dev_t cleanup. 2004-06-17 17:16:53 +00:00
kern (1) Removed the bogus condition "p->p_pid != 1" on calling sched_exit() 2004-06-21 14:49:50 +00:00
libkern Import libkern arm specific bits. 2004-05-14 12:28:31 +00:00
modules Give zlib the ability to be a module that can be depended on, 2004-06-20 17:42:35 +00:00
net Give zlib the ability to be a module that can be depended on, 2004-06-20 17:42:35 +00:00
net80211 Link ALTQ to the build and break with ABI for struct ifnet. Please recompile 2004-06-13 17:29:10 +00:00
netatalk Socket MAC labels so_label and so_peerlabel are now protected by 2004-06-13 02:50:07 +00:00
netatm The socket field so_state is used to hold a variety of socket related 2004-06-14 18:16:22 +00:00
netgraph Remove one more unneeded reference to arpcom.ac_netgraph. 2004-06-20 21:08:58 +00:00
netinet If debug.mpsafenet is set, initialize TCP callouts as CALLOUT_MPSAFE. 2004-06-20 21:44:50 +00:00
netinet6 Link ALTQ to the build and break with ABI for struct ifnet. Please recompile 2004-06-13 17:29:10 +00:00
netipsec use correct address for SADB_EXT_ADDRESS_DST in key_do_allocsa_policy 2004-05-03 05:15:53 +00:00
netipx It's now the responsibility of the consumer of soabort() to remove a 2004-06-20 21:47:12 +00:00
netkey Merge next step in socket buffer locking: 2004-06-21 00:20:43 +00:00
netnatm Extend coverage of SOCK_LOCK(so) to include so_count, the socket 2004-06-12 20:47:32 +00:00
netncp Do the dreaded s/dev_t/struct cdev */ 2004-06-16 09:47:26 +00:00
netsmb Merge additional socket buffer locking from rwatson_netperf: 2004-06-17 22:48:11 +00:00
nfs Remove advertising clause from University of California Regent's 2004-04-07 05:00:01 +00:00
nfs4client Second half of the dev_t cleanup. 2004-06-17 17:16:53 +00:00
nfsclient Second half of the dev_t cleanup. 2004-06-17 17:16:53 +00:00
nfsserver Merge additional socket buffer locking from rwatson_netperf: 2004-06-17 22:48:11 +00:00
opencrypto Do the dreaded s/dev_t/struct cdev */ 2004-06-16 09:47:26 +00:00
pc98 MFi386: revision 1.1161 2004-06-16 14:21:52 +00:00
pccard Do the dreaded s/dev_t/struct cdev */ 2004-06-16 09:47:26 +00:00
pci Do the dreaded s/dev_t/struct cdev */ 2004-06-16 09:47:26 +00:00
posix4 The sem_timedwait() and ksem_timedwait() functions both 2004-02-03 22:27:03 +00:00
powerpc Do the dreaded s/dev_t/struct cdev */ 2004-06-16 09:47:26 +00:00
rpc Remove advertising clause from University of California Regent's 2004-04-07 05:00:01 +00:00
security Do the dreaded s/dev_t/struct cdev */ 2004-06-16 09:47:26 +00:00
sparc64 Backed out previous commit. Blind substitution of dev_t by `struct cdev *' 2004-06-20 03:52:50 +00:00
sys Merge next step in socket buffer locking: 2004-06-21 00:20:43 +00:00
tools devlist2h.awk is too generic a name for what it does. It really 2004-05-26 00:19:39 +00:00
ufs Backed out previous commit. The dev_t -> `struct cdev *' changes have 2004-06-20 03:11:19 +00:00
vm Remove spl() calls. Update comments to reflect the removal of spl() calls. 2004-06-19 04:19:47 +00:00
Makefile Try harder not to compile anything in sys/boot for arm. 2004-05-16 00:19:12 +00:00