1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-19 10:53:58 +00:00
freebsd/sys
Bruce Evans 9a44a82b61 Fixed breakage of scheduling in rev.1.29 of subr_4bsd.c. The
"scheduler" here has very little to do with scheduling.  It is actually
the swapper, and it really must be the last SYSINIT'ed item like its
comment says, since proc0 metamorphoses into swapper by calling
scheduler() last in mi_start(), and scheduler() never returns..  Rev.1.29
of subr_4bsd.c broke this by adding another SI_ORDER_FIRST item
(kproc_start() for schedcpu_thread() onto the SI_SUB_RUN_SCHEDULER_LIST.
The sorting of SYSINITs with identical orders (at all levels) is
apparently nondeterministic, so this resulted in schedule() sometimes
being called second last and schedcpu_thread() not being called at all.

This quick fix just changes the code to almost match the comment
(SI_ORDER_FIRST -> SI_ORDER_ANY).  "LAST" is misspelled "ANY", and
there is no way to ensure that there is only 1 very lst SYSINIT.
A more complete fix would remove the SYSINIT obfuscation.
2004-01-29 12:35:11 +00:00
..
alpha - Remove local changes that leaked into my last commit. 2004-01-24 21:45:25 +00:00
amd64 Re-add debug register support. 2004-01-29 00:07:29 +00:00
arm
boot MFi386: revision 1.33 2004-01-28 04:15:31 +00:00
cam
coda
compat Regen 2004-01-28 23:45:48 +00:00
conf Implement UMA_MD_SMALL_ALLOC, since the BAT registers allow direct 2004-01-29 00:32:22 +00:00
contrib
crypto Fix a reentrancy issue in md5_calc(). 2004-01-27 18:57:21 +00:00
ddb If not in the debugger or if the user requests it with the 2004-01-28 06:51:18 +00:00
dev Fix a bug where we never managed to include the sense data we wanted to send. 2004-01-29 06:36:30 +00:00
fs
geom Bring back the geom_bioqueues, they _are_ a good idea. 2004-01-28 08:39:18 +00:00
gnu Copy workaround from FFS: open device for write access even if 2004-01-24 08:43:06 +00:00
i4b
i386 Optimize the i386 interrupt entry code to not reload the segment registers 2004-01-28 20:44:08 +00:00
ia64 Sort PFIL_HOOKS. 2004-01-27 20:22:53 +00:00
isa
isofs/cd9660
kern Assert process lock in ptracestop(), since we're going to rely 2004-01-29 00:58:21 +00:00
libkern
modules Always build ext2fs module. There is no written policy preventing the 2004-01-28 04:16:13 +00:00
net Cleanup malloc() use in if_attach(): 2004-01-27 19:35:05 +00:00
net80211
netatalk
netatm
netgraph Correct the description of the net.graph.recvspace sysctl. 2004-01-27 22:02:01 +00:00
netinet Correct the descriptions of the net.inet.{udp,raw}.recvspace sysctls. 2004-01-27 22:17:39 +00:00
netinet6 protect access to ifnet structure with mutex. 2004-01-28 15:01:39 +00:00
netipsec o add missing break 2004-01-27 17:45:28 +00:00
netipx
netkey avoid duplicate free. 2004-01-25 17:18:12 +00:00
netnatm
netncp
netsmb
nfs
nfs4client
nfsclient
nfsserver
opencrypto
pc98 The ataraid device is not needed for pc98. 2004-01-27 15:39:32 +00:00
pccard
pci
posix4
powerpc When UMA_MD_SMALL_ALLOC is defined, pmap_kextract will be called 2004-01-29 00:45:41 +00:00
rpc
security
sparc64 - Fix for sparc64 to use new __panic() function 2004-01-27 15:02:18 +00:00
sys Rework witness_lock() to make it slightly more useful and flexible. 2004-01-28 20:39:57 +00:00
tools
ufs Turn uio_resid/uio_offset comments into KASSERTs 2004-01-27 11:28:38 +00:00
vm Fixed breakage of scheduling in rev.1.29 of subr_4bsd.c. The 2004-01-29 12:35:11 +00:00
Makefile