1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-19 10:53:58 +00:00
freebsd/sys
Bruce Evans b3aeaf2ed1 Removed mostly-dead code for setting switchtime after the idle loop
clobbers this variable.  Long ago, when the idle loop wasn't in a
process, it set switchtime.tv_sec to zero to indicate that the time
needs to be read after the idle loop finishes.  The special case for
this isn't needed now that there is an idle process (for each CPU).
The time is read in the normal way when the idle process is switched
away from.  The seconds component of the time is only zero for the
first second after the uptime is set, and the mostly-dead code was only
executed during this time.  (This was slightly broken by using uptimes
instead of times relative to the Epoch -- in the original version the
seconds component of the time was only 0 for the first second after
the Epoch.)

In mi_switch(), moved the setting of switchticks to just after the
first (and now only) setting of switchtime.  This setting used to be
delayed since a late setting was needed for the idle case and an early
setting was not needed.  Now the early setting is needed so that
fork_exit() doesn't need to set either switchtime or switchticks.
Removed now-completely-rotted comment attached to this.  Most of the
code described by the comment had already moved to sched_switch().
2003-10-29 15:23:09 +00:00
..
alpha Add a stub cpu_idle() function for sparc64, alpha, powerpc. This is a 2003-10-19 02:36:07 +00:00
amd64 Oops. Remove some rather noisy debug printfs that slipped in there 2003-10-28 01:06:37 +00:00
arm Add sysentvec->sv_fixlimits() hook so that we can catch cases on 64 bit 2003-09-25 01:10:26 +00:00
boot Directly call the 'reboot' word instead of indirectly evaluating it. 2003-10-28 17:18:42 +00:00
cam In camperiphdone(), make sure we check for fatal errors and bail out 2003-10-27 06:15:55 +00:00
coda Include <sys/mutex.h>. Don't depend on namespace pollution in <sys/vnode.h>. 2003-10-05 07:44:45 +00:00
compat Reject negative ngrp arguments in linux_setgroups() and linux_setgroups16(); 2003-10-21 11:00:33 +00:00
conf Alphabetical order for ACPI options broken by adding ACPI_NO_RESET_VIDEO. 2003-10-29 14:22:09 +00:00
contrib This commit was generated by cvs2svn to compensate for changes in r121642, 2003-10-29 04:25:17 +00:00
crypto Add a testcase which validates that the same buffer can be passed to 2003-10-19 22:12:23 +00:00
ddb Reworked rev.1.14. Use the ELF symbol type again to summarily reject 2003-09-28 06:02:33 +00:00
dev Allow sending of more than one raw cell from a single mbuf. Only the 2003-10-29 15:15:19 +00:00
fs Remember to check the DE_WHITEOUT flag in the case where a cloned 2003-10-20 15:08:10 +00:00
geom Close the right consumers if we run into trouble opening them all. 2003-10-24 18:47:31 +00:00
gnu Fix the alpha tinderbox. The alpha specific bitops used by the bitmap 2003-10-29 07:35:53 +00:00
i4b Use PCIR_BAR(x) instead of PCIR_MAPS. 2003-09-02 17:30:40 +00:00
i386 Alphabetical order for ACPI options broken by adding ACPI_NO_RESET_VIDEO. 2003-10-29 14:22:09 +00:00
ia64 When switching the RSE to use the kernel stack as backing store, keep 2003-10-28 19:38:26 +00:00
isa Look at the equipment list for amd64 as well as i386 for autodetecting 2003-10-23 05:52:52 +00:00
isofs/cd9660 DuH! 2003-10-18 14:10:28 +00:00
kern Removed mostly-dead code for setting switchtime after the idle loop 2003-10-29 15:23:09 +00:00
libkern - Support for multibyte charsets in LIBICONV. 2003-09-26 20:26:25 +00:00
modules Add dumb console driver and related bits. 2003-10-24 15:44:10 +00:00
net Introduce the notion of "persistent mbuf tags"; these are tags that stay 2003-10-29 05:40:07 +00:00
net80211 fix station mode breakage (repeat after me: "test every change, no 2003-10-17 23:59:11 +00:00
netatalk Remove unnecessary casts to (caddr_t) for if_broadcastaddr. 2003-10-23 17:48:53 +00:00
netatm
netgraph Netgraph part of the NgATM signalling AA layer. These nodes can 2003-10-24 07:39:11 +00:00
netinet add ECN support in layer-3. 2003-10-29 15:07:04 +00:00
netinet6 add ECN support in layer-3. 2003-10-29 15:07:04 +00:00
netipsec MFp4: portability work, general cleanup, locking fixes 2003-09-29 22:57:43 +00:00
netipx Fix a bunch of off-by-one errors in the range checking code. 2003-09-11 21:40:21 +00:00
netkey mib name was changed by fixing a spelling. 2003-10-28 16:16:04 +00:00
netnatm
netncp The present defaults for the open and close for device drivers which 2003-09-27 12:01:01 +00:00
netsmb - Support for multibyte charsets in LIBICONV. 2003-09-26 20:26:25 +00:00
nfs
nfsclient DuH! 2003-10-18 14:10:28 +00:00
nfsserver When grabbing vnodes to service NFS requests, make sure to call 2003-10-24 18:36:49 +00:00
opencrypto falloc allocates a file structure and adds it to the file descriptor 2003-10-19 20:41:07 +00:00
pc98 MFi386: revision 1.577. 2003-10-19 11:35:44 +00:00
pccard Change all SYSCTLS which are readonly and have a related TUNABLE 2003-10-21 18:28:36 +00:00
pci Add simple support for AGP 3.0 including enabling 8x mode. The simple 2003-10-23 18:08:56 +00:00
posix4 sched_setscheduler: Return EINVAL when a invalid policy is specified, 2003-09-13 18:46:24 +00:00
powerpc Add a stub cpu_idle() function for sparc64, alpha, powerpc. This is a 2003-10-19 02:36:07 +00:00
rpc
security Make MAC_EXTERNALIZE() and MAC_INTERNALIZE() simply take the object 2003-10-25 15:28:20 +00:00
sparc64 Add a stub cpu_idle() function for sparc64, alpha, powerpc. This is a 2003-10-19 02:36:07 +00:00
sys Introduce the notion of "persistent mbuf tags"; these are tags that stay 2003-10-29 05:40:07 +00:00
tools Changes for new SMP-safe kobj method dispatch algorithm. 2003-10-16 13:29:26 +00:00
ufs Move the P_COWINPROGRESS flag from being a per-process p_flag to being a 2003-10-23 21:14:08 +00:00
vm - Synchronize updates to nswapdev using sw_dev_mtx. 2003-10-29 07:51:41 +00:00
Makefile