freebsd-nq/sys/kern
Poul-Henning Kamp e796e00de3 Some cleanups related to timecounters and weird ifdefs in <sys/time.h>.
Clean up (or if antipodic: down) some of the msgbuf stuff.

Use an inline function rather than a macro for timecounter delta.

Maintain process "on-cpu" time as 64 bits of microseconds to avoid
needless second rollover overhead.

Avoid calling microuptime the second time in mi_switch() if we do
not pass through _idle in cpu_switch()

This should reduce our context-switch overhead a bit, in particular
on pre-P5 and SMP systems.

WARNING:  Programs which muck about with struct proc in userland
will have to be fixed.

Reviewed, but found imperfect by:       bde
1998-05-28 09:30:28 +00:00
..
imgact_aout.c Removed unused #includes. 1998-02-20 13:11:54 +00:00
imgact_elf.c Translate T_PROTFLT to SIGSEGV instead of SIGBUS when running under 1998-04-28 18:15:08 +00:00
imgact_gzip.c Make gzipped dynamically linked executables work again. There was 1997-12-14 19:36:24 +00:00
imgact_shell.c Removed unused #includes. 1997-08-02 14:33:27 +00:00
inflate.c Last major round (Unless Bruce thinks of somthing :-) of malloc changes. 1997-10-12 20:26:33 +00:00
init_main.c Some cleanups related to timecounters and weird ifdefs in <sys/time.h>. 1998-05-28 09:30:28 +00:00
init_sysent.c regen after signanosleep nuke 1998-05-14 11:29:06 +00:00
init_sysvec.c Translate T_PROTFLT to SIGSEGV instead of SIGBUS when running under 1998-04-28 18:15:08 +00:00
kern_acct.c Move the "retval" (3rd) parameter from all syscall functions and put 1997-11-06 19:29:57 +00:00
kern_clock.c Some cleanups related to timecounters and weird ifdefs in <sys/time.h>. 1998-05-28 09:30:28 +00:00
kern_conf.c Staticized. 1997-11-22 08:35:46 +00:00
kern_descrip.c Fix the futimes/undelete/utrace conflict with other BSD's. Note that 1998-05-11 03:55:28 +00:00
kern_exec.c Seventy-odd "its" / "it's" typos in comments fixed as per kern/6108. 1998-04-17 22:37:19 +00:00
kern_exit.c Make a kernel version of the timer* functions called timerval* to be 1998-04-06 08:26:08 +00:00
kern_fork.c VM level code cleanups. 1998-01-22 17:30:44 +00:00
kern_intr.c Really finish supporting compiling with `gcc -ansi'. 1998-04-17 04:53:44 +00:00
kern_ktrace.c Don't depend on "implicit int". 1998-02-20 13:37:40 +00:00
kern_linker.c Use a real malloc type for M_LINKER instead of #defining it as M_TEMP. 1998-01-01 08:56:24 +00:00
kern_lkm.c Make NO_LKM a new-style option. 1998-02-12 18:02:07 +00:00
kern_lock.c Really finish supporting compiling with `gcc -ansi'. 1998-04-17 04:53:44 +00:00
kern_lockf.c Make the debug options new-style. 1998-01-31 07:23:16 +00:00
kern_malloc.c Reviewed by: dyson@freebsd.org (john Dyson), dg@root.com (david greenman) 1998-03-08 09:59:44 +00:00
kern_mib.c Finish _POSIX_PRIORITY_SCHEDULING. Needs P1003_1B and 1998-03-28 11:51:01 +00:00
kern_module.c Remove a bunch of variables which were unused both in GENERIC and LINT. 1997-11-07 08:53:44 +00:00
kern_ntptime.c Eradicate the variable "time" from the kernel, using various measures. 1998-03-30 09:56:58 +00:00
kern_opt.c Added a copyright and restored order. 1997-02-28 10:14:24 +00:00
kern_physio.c Perhaps fix a problem that some drivers have that they don't properly 1998-04-04 05:55:05 +00:00
kern_proc.c Staticized. 1998-02-20 13:52:15 +00:00
kern_prot.c Clear the p_stops field on change of user/group id, unless the correct 1997-12-20 03:05:47 +00:00
kern_random.c Support compiling with `gcc -ansi'. 1998-04-15 17:47:40 +00:00
kern_resource.c Some cleanups related to timecounters and weird ifdefs in <sys/time.h>. 1998-05-28 09:30:28 +00:00
kern_shutdown.c Add forwarding of roundrobin to other cpus. This gives a more regular 1998-05-17 22:12:14 +00:00
kern_sig.c Forward the signal if the process runs on a different CPU. This reduces 1998-03-03 20:55:26 +00:00
kern_subr.c Back out DIAGNOSTIC changes. 1998-02-06 12:14:30 +00:00
kern_synch.c Some cleanups related to timecounters and weird ifdefs in <sys/time.h>. 1998-05-28 09:30:28 +00:00
kern_sysctl.c Make COMPAT_43 and COMPAT_SUNOS new-style options. 1997-12-16 17:40:42 +00:00
kern_tc.c Some cleanups related to timecounters and weird ifdefs in <sys/time.h>. 1998-05-28 09:30:28 +00:00
kern_threads.c Eradicate the variable "time" from the kernel, using various measures. 1998-03-30 09:56:58 +00:00
kern_time.c Fixed interval calculation in realitimexpire() again. Obtained from: 1998-05-17 20:13:01 +00:00
kern_timeout.c Fixed stale references to hzto() in comments. 1998-05-17 20:08:05 +00:00
kern_xxx.c Make COMPAT_43 and COMPAT_SUNOS new-style options. 1997-12-16 17:40:42 +00:00
ksched.c 1. Add new defs for mins and maxs for the POSIX flavor priorities. They 1998-05-19 21:11:53 +00:00
link_aout.c Fixed a sloppy common-style definitions. 1997-11-20 20:07:59 +00:00
Make.tags.inc Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
Makefile Remove bogus architectures to allow make tags to work. 1996-03-31 18:53:43 +00:00
makesyscalls.sh Add statements to generate a sys/syscall.mk file for inclusion 1998-03-09 04:00:42 +00:00
md5c.c Oops, the previous commit should have changed i386' to __i386__', 1998-05-01 16:40:21 +00:00
p1003_1b.c 1. Add new defs for mins and maxs for the POSIX flavor priorities. They 1998-05-19 21:11:53 +00:00
posix4_mib.c Finish _POSIX_PRIORITY_SCHEDULING. Needs P1003_1B and 1998-03-28 11:51:01 +00:00
subr_autoconf.c Removed an unused #include. Ifdefed a conditionally used #include. 1997-11-18 12:43:41 +00:00
subr_clist.c Support compiling with `gcc -ansi'. 1998-04-15 17:47:40 +00:00
subr_disklabel.c Don't depend on "implicit int". 1998-02-20 13:37:40 +00:00
subr_diskmbr.c In all such uses of struct buf: 's/b_un.b_addr/b_data/g' 1997-12-02 21:07:20 +00:00
subr_diskslice.c Discussed with: bde 1998-04-24 11:50:30 +00:00
subr_dkbad.c In all such uses of struct buf: 's/b_un.b_addr/b_data/g' 1997-12-02 21:07:20 +00:00
subr_log.c Some cleanups related to timecounters and weird ifdefs in <sys/time.h>. 1998-05-28 09:30:28 +00:00
subr_param.c Convert socket structures to be type-stable and add a version number. 1998-05-15 20:11:40 +00:00
subr_prf.c Some cleanups related to timecounters and weird ifdefs in <sys/time.h>. 1998-05-28 09:30:28 +00:00
subr_prof.c Oops, the previous commit should have changed i386' to __i386__', 1998-05-01 16:40:21 +00:00
subr_rlist.c Support compiling with `gcc -ansi'. 1998-04-15 17:47:40 +00:00
subr_smp.c Add forwarding of roundrobin to other cpus. This gives a more regular 1998-05-17 22:12:14 +00:00
subr_trap.c Translate T_PROTFLT to SIGSEGV instead of SIGBUS when running under 1998-04-28 18:15:08 +00:00
subr_xxx.c Zap nxselect and noselect. 1997-09-14 02:50:28 +00:00
sys_generic.c s/nanoruntime/nanouptime/g 1998-05-17 11:53:46 +00:00
sys_pipe.c Moved some #includes from <sys/param.h> nearer to where they are actually 1998-03-28 10:33:27 +00:00
sys_process.c Disallow reading the current kernel stack. Only the user structure and 1998-05-19 00:00:14 +00:00
sys_socket.c Moved some #includes from <sys/param.h> nearer to where they are actually 1998-03-28 10:33:27 +00:00
syscalls.c regen after signanosleep nuke 1998-05-14 11:29:06 +00:00
syscalls.master deep-six signanosleep(). It sounded like a good idea at the time. 1998-05-14 11:28:11 +00:00
sysv_ipc.c Removed an unused #include. Added an unsed #include of <sys/ucred.h> 1997-11-18 12:52:10 +00:00
sysv_msg.c Eradicate the variable "time" from the kernel, using various measures. 1998-03-30 09:56:58 +00:00
sysv_sem.c Eradicate the variable "time" from the kernel, using various measures. 1998-03-30 09:56:58 +00:00
sysv_shm.c Fix the shm panic. I mistakenly used the shadow_count to keep the object 1998-05-04 17:12:53 +00:00
tty_compat.c Don't depend on "implicit int". 1998-02-25 06:16:37 +00:00
tty_conf.c Make COMPAT_43 and COMPAT_SUNOS new-style options. 1997-12-16 17:40:42 +00:00
tty_cons.c Moved some #includes from <sys/param.h> nearer to where they are actually 1998-03-28 10:33:27 +00:00
tty_pty.c Don't depend on "implicit int" or bloat the data section in the 1998-02-25 06:19:15 +00:00
tty_snoop.c Don't depend on "implicit int" or bloat the data section in the 1998-02-20 13:46:58 +00:00
tty_subr.c Support compiling with `gcc -ansi'. 1998-04-15 17:47:40 +00:00
tty_tb.c Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
tty_tty.c Don't depend on "implicit int" or bloat the data section in the 1998-02-20 13:46:58 +00:00
tty.c Fixed stale references to hzto() in comments. 1998-05-17 20:08:05 +00:00
uipc_domain.c Convert socket structures to be type-stable and add a version number. 1998-05-15 20:11:40 +00:00
uipc_mbuf.c Don't depend on "implicit int". 1998-02-20 13:37:40 +00:00
uipc_proto.c Convert socket structures to be type-stable and add a version number. 1998-05-15 20:11:40 +00:00
uipc_sockbuf.c s/nanoruntime/nanouptime/g 1998-05-17 11:53:46 +00:00
uipc_socket2.c s/nanoruntime/nanouptime/g 1998-05-17 11:53:46 +00:00
uipc_socket.c Convert socket structures to be type-stable and add a version number. 1998-05-15 20:11:40 +00:00
uipc_syscalls.c Fix a minor mbuf leak created by the previous change. 1998-04-14 06:24:43 +00:00
uipc_usrreq.c Convert socket structures to be type-stable and add a version number. 1998-05-15 20:11:40 +00:00
vfs_aio.c Seventy-odd "its" / "it's" typos in comments fixed as per kern/6108. 1998-04-17 22:37:19 +00:00
vfs_bio.c vm_page_is_valid() wasn't expecting a large offset argument, it's 1998-05-01 15:10:59 +00:00
vfs_cache.c Removed some bogus casts. 1997-12-19 23:18:37 +00:00
vfs_cluster.c Make flushing dirty pages work correctly on filesystems that 1998-05-21 07:47:58 +00:00
vfs_conf.c Make the devfs SLICE option a standard type option. 1998-04-20 03:57:41 +00:00
vfs_default.c As described by the submitter: 1998-05-06 05:29:41 +00:00
vfs_export.c Supply the correct process argument to dounmount when possible. 1998-05-17 19:38:55 +00:00
vfs_extattr.c Fix the futimes/undelete/utrace conflict with other BSD's. Note that 1998-05-11 03:55:28 +00:00
vfs_init.c Staticize. 1998-02-09 06:11:36 +00:00
vfs_lookup.c New mount option nosymfollow. If enabled, the kernel lookup() 1998-04-08 18:31:59 +00:00
vfs_mount.c Make the devfs SLICE option a standard type option. 1998-04-20 03:57:41 +00:00
vfs_subr.c Supply the correct process argument to dounmount when possible. 1998-05-17 19:38:55 +00:00
vfs_syscalls.c Fix the futimes/undelete/utrace conflict with other BSD's. Note that 1998-05-11 03:55:28 +00:00
vfs_vnops.c In the words of the submitter: 1998-05-07 04:58:58 +00:00
vnode_if.pl Use __inline instead of inline to prevent pedantic compiler warnings. 1997-12-19 23:25:16 +00:00
vnode_if.sh Use __inline instead of inline to prevent pedantic compiler warnings. 1997-12-19 23:25:16 +00:00
vnode_if.src In the words of the submitter: 1998-05-07 04:58:58 +00:00