1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-02 12:20:51 +00:00
freebsd/sys
John Baldwin 9000d57d57 Associate a simple count of waiters with each condition variable. The
count is protected by the mutex that protects the condition, so the count
does not require any extra locking or atomic operations.  It serves as an
optimization to avoid calling into the sleepqueue code at all if there are
no waiters.

Note that the count can get temporarily out of sync when threads sleeping
on a condition variable time out or are aborted.  However, it doesn't hurt
to call the sleepqueue code for either a signal or a broadcast when there
are no waiters, and the count is never out of sync in the opposite
direction unless we have more than INT_MAX sleeping threads.
2004-04-06 19:17:46 +00:00
..
alpha Remove the advertsing clause, per the Regent's letter dated July 22, 1999. 2004-04-05 21:00:51 +00:00
amd64 Remove advertising clause from University of California Regent's license, 2004-04-05 23:55:14 +00:00
arm Remove advertising clause from University of California Regent's license, 2004-04-05 21:29:41 +00:00
boot Remove advertising clause from University of California Regent's license, 2004-04-05 23:41:29 +00:00
cam
coda
compat - The MiniportReset() function can return NDIS_STATUS_PENDING, in which 2004-04-05 08:26:52 +00:00
conf Add a new kernel option MUTEX_WAKE_ALL that changes the mutex unlock code 2004-04-06 19:12:24 +00:00
contrib Unbreak the bootloader build by excluding ctype.h. 2004-04-05 17:30:15 +00:00
crypto
ddb
dev Enable the memory arbiter before turning off the PXE restart. This 2004-04-06 18:28:15 +00:00
fs Remove ps_argsopen from this check, because of two reasons: 2004-04-01 00:04:23 +00:00
geom Calculate bio_completed properly or die! 2004-04-04 20:37:28 +00:00
gnu Properly vector all bwrite() and BUF_WRITE() calls through the same path 2004-03-11 18:02:36 +00:00
i4b Convert callers to the new bus_alloc_resource_any(9) API. 2004-03-17 17:50:55 +00:00
i386 Uncomment the cy driver since it works again. 2004-04-05 19:31:18 +00:00
ia64 Remove avail_end. As of yesterday, it is unused. 2004-04-06 01:38:28 +00:00
isa Put a bunch of output that us really only useful in a debug 2004-04-04 16:36:21 +00:00
isofs/cd9660 Remove unused second arg to vfinddev(). 2004-03-11 16:33:11 +00:00
kern Associate a simple count of waiters with each condition variable. The 2004-04-06 19:17:46 +00:00
libkern Bring these files closer to style(9) conformance by comparing a 2004-03-29 21:15:41 +00:00
modules Make pf* modules respect NOINET6 from make.conf(5) in order to build them 2004-04-06 15:12:50 +00:00
net Properly detect loops by recording the interface pointer in an mtag. 2004-04-05 16:55:15 +00:00
net80211 Resolve the issue of whether frames have FCS or not. Frame data does not 2004-04-05 22:13:21 +00:00
netatalk Rename 'ddpcb' variable to 'ddpcb_list' to better distinguish it from 2004-03-22 04:54:36 +00:00
netatm These are changes to allow to use the Intel C/C++ compiler (lang/icc) 2004-03-12 21:45:33 +00:00
netgraph Rename internal structure to fix cut & paste error. 2004-04-04 21:33:09 +00:00
netinet Fixed misspelling of IPPORT_MAX as USHRT_MAX. Don't include <sys/limits.h> 2004-04-06 10:59:11 +00:00
netinet6 UDP checksum is mandatory in IPv6 (RFC2460 p.28) 2004-04-01 13:48:23 +00:00
netipsec This file was erroneously removed from HEAD when TCP-MD5 support was MFC'd; 2004-04-03 05:31:38 +00:00
netipx Rename dup_sockaddr() to sodupsockaddr() for consistency with other 2004-03-01 03:14:23 +00:00
netkey
netnatm Rename dup_sockaddr() to sodupsockaddr() for consistency with other 2004-03-01 03:14:23 +00:00
netncp Make the process_exit eventhandler run without Giant. Add Giant hooks 2004-03-14 02:06:28 +00:00
netsmb Rename dup_sockaddr() to sodupsockaddr() for consistency with other 2004-03-01 03:14:23 +00:00
nfs
nfs4client fix for 64-bit arch: 2004-03-26 22:44:59 +00:00
nfsclient Spell 2 as SHUT_RDWR when used as an argument to soshutdown(). 2004-04-04 19:24:08 +00:00
nfsserver Add imperfect comments identifying the function of various nfs socket 2004-04-06 01:58:58 +00:00
opencrypto kthread_exit() no longer requires Giant, so don't force callers to acquire 2004-03-05 22:42:17 +00:00
pc98 MFi386: Enable the cy driver. 2004-04-06 14:19:45 +00:00
pccard Convert callers to the new bus_alloc_resource_any(9) API. 2004-03-17 17:50:55 +00:00
pci Actually fix the TX performance with polling(4) enabled 2004-04-06 11:04:54 +00:00
posix4
powerpc Remove avail_start on those platforms that no longer use it. (Only amd64 2004-04-05 04:08:00 +00:00
rpc Reset callout if in nfs_timeout and rpcclnt_timeout functions. Timer 2004-03-28 05:55:27 +00:00
security
sparc64 Remove avail_start on those platforms that no longer use it. (Only amd64 2004-04-05 04:08:00 +00:00
sys Associate a simple count of waiters with each condition variable. The 2004-04-06 19:17:46 +00:00
tools
ufs Fix the remaining warnings of growfs(8) on my sparc64 box with 2004-04-03 23:30:59 +00:00
vm Eliminate vm_pager_map_page() and vm_pager_unmap_page() and their uses. 2004-04-06 07:12:32 +00:00
Makefile