freebsd-skq/sys/kern
Poul-Henning Kamp 227ee8a188 Eradicate the variable "time" from the kernel, using various measures.
"time" wasn't a atomic variable, so splfoo() protection were needed
around any access to it, unless you just wanted the seconds part.

Most uses of time.tv_sec now uses the new variable time_second instead.

gettime() changed to getmicrotime(0.

Remove a couple of unneeded splfoo() protections, the new getmicrotime()
is atomic, (until Bruce sets a breakpoint in it).

A couple of places needed random data, so use read_random() instead
of mucking about with time which isn't random.

Add a new nfs_curusec() function.

Mark a couple of bogosities involving the now disappeard time variable.

Update ffs_update() to avoid the weird "== &time" checks, by fixing the
one remaining call that passwd &time as args.

Change profiling in ncr.c to use ticks instead of time.  Resolution is
the same.

Add new function "tvtohz()" to avoid the bogus "splfoo(), add time, call
hzto() which subtracts time" sequences.

Reviewed by:	bde
1998-03-30 09:56:58 +00:00
..
imgact_aout.c Removed unused #includes. 1998-02-20 13:11:54 +00:00
imgact_elf.c Removed unused #includes. 1998-03-28 13:25:01 +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 Eradicate the variable "time" from the kernel, using various measures. 1998-03-30 09:56:58 +00:00
init_sysent.c Finish _POSIX_PRIORITY_SCHEDULING. Needs P1003_1B and 1998-03-28 11:51:01 +00:00
init_sysvec.c Removed unused #includes. 1997-08-02 14:33:27 +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 Eradicate the variable "time" from the kernel, using various measures. 1998-03-30 09:56:58 +00:00
kern_conf.c Staticized. 1997-11-22 08:35:46 +00:00
kern_descrip.c Make the rootdir handling more consistent. Now, processes always 1998-02-15 04:17:09 +00:00
kern_exec.c Free the first page also if it is not valid. 1998-03-08 06:21:33 +00:00
kern_exit.c VM level code cleanups. 1998-01-22 17:30:44 +00:00
kern_fork.c VM level code cleanups. 1998-01-22 17:30:44 +00:00
kern_intr.c Move include of <machine/ipl.h> inside ifndef SMP where it is used, to 1998-02-10 17:10:23 +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 Some kern_lock code improvements. Add missing wakeup, and enable 1998-03-07 19:25:34 +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 Moved some #includes from <sys/param.h> nearer to where they are actually 1998-03-28 10:33:27 +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 Export MD5Transform in md5.c and remove a private version in random_machdep.c 1998-03-29 11:55:06 +00:00
kern_resource.c Reviewed by: msmith, bde long ago 1998-03-04 10:25:55 +00:00
kern_shutdown.c Reviewed by: dyson@freebsd.org (john Dyson), dg@root.com (david greenman) 1998-03-08 09:59:44 +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 Remove duplicate comment 1998-03-28 18:16:29 +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 Eradicate the variable "time" from the kernel, using various measures. 1998-03-30 09:56:58 +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 Eradicate the variable "time" from the kernel, using various measures. 1998-03-30 09:56:58 +00:00
kern_timeout.c Declare function pointer args as pointers, not as functions. 1998-02-25 06:13:32 +00:00
kern_xxx.c Make COMPAT_43 and COMPAT_SUNOS new-style options. 1997-12-16 17:40:42 +00:00
ksched.c Include sys/resource.h to get PRIO_MAX. 1998-03-28 14:49:47 +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 Export MD5Transform in md5.c and remove a private version in random_machdep.c 1998-03-29 11:55:06 +00:00
p1003_1b.c Finish _POSIX_PRIORITY_SCHEDULING. Needs P1003_1B and 1998-03-28 11:51:01 +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 Last major round (Unless Bruce thinks of somthing :-) of malloc changes. 1997-10-12 20:26:33 +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 Fixed an aliasing bug. It was too easy to defeat the check for moving 1998-02-15 05:41:31 +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 Don't depend on "implicit int" or bloat the data section in the 1998-02-20 13:46:58 +00:00
subr_param.c Raise ncallout from NPROC + 16 to NPROC + 16 + MAXFILES. This shold 1998-02-27 19:58:29 +00:00
subr_prf.c Handle "%...p" as "%#...x" instead of "0x%...x". This is a quick fix 1997-12-28 05:03:33 +00:00
subr_prof.c Move the "retval" (3rd) parameter from all syscall functions and put 1997-11-06 19:29:57 +00:00
subr_rlist.c Back out DIAGNOSTIC changes. 1998-02-06 12:14:30 +00:00
subr_smp.c The APs now reload the interrupt descriptor table pointer after 1998-03-07 20:16:49 +00:00
subr_trap.c Eradicate the variable "time" from the kernel, using various measures. 1998-03-30 09:56:58 +00:00
subr_xxx.c Zap nxselect and noselect. 1997-09-14 02:50:28 +00:00
sys_generic.c Eradicate the variable "time" from the kernel, using various measures. 1998-03-30 09:56:58 +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 Back out DIAGNOSTIC changes. 1998-02-06 12:14:30 +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 Finish _POSIX_PRIORITY_SCHEDULING. Needs P1003_1B and 1998-03-28 11:51:01 +00:00
syscalls.master Finish _POSIX_PRIORITY_SCHEDULING. Needs P1003_1B and 1998-03-28 11:51:01 +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 Eradicate the variable "time" from the kernel, using various measures. 1998-03-30 09:56:58 +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 Last major round (Unless Bruce thinks of somthing :-) of malloc changes. 1997-10-12 20:26:33 +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 Eradicate the variable "time" from the kernel, using various measures. 1998-03-30 09:56:58 +00:00
uipc_domain.c Fixed gratuitous ANSIisms. 1997-09-16 11:44:05 +00:00
uipc_mbuf.c Don't depend on "implicit int". 1998-02-20 13:37:40 +00:00
uipc_proto.c Removed unused #includes. 1998-02-20 13:11:54 +00:00
uipc_sockbuf.c Make sure that you can only bind a more specific address when it is 1998-03-01 19:39:29 +00:00
uipc_socket2.c Make sure that you can only bind a more specific address when it is 1998-03-01 19:39:29 +00:00
uipc_socket.c Moved some #includes from <sys/param.h> nearer to where they are actually 1998-03-28 10:33:27 +00:00
uipc_syscalls.c Moved some #includes from <sys/param.h> nearer to where they are actually 1998-03-28 10:33:27 +00:00
uipc_usrreq.c Back out DIAGNOSTIC changes. 1998-02-06 12:14:30 +00:00
vfs_aio.c Eradicate the variable "time" from the kernel, using various measures. 1998-03-30 09:56:58 +00:00
vfs_bio.c Correct a problem where buffers might not be zeroed when needed. The 1998-03-27 06:48:24 +00:00
vfs_cache.c Removed some bogus casts. 1997-12-19 23:18:37 +00:00
vfs_cluster.c In kern_physio.c fix tsleep priority messup. 1998-03-19 22:48:16 +00:00
vfs_conf.c If the root mount fails from a device that is not the compatability slice 1998-03-11 00:10:31 +00:00
vfs_default.c This mega-commit is meant to fix numerous interrelated problems. There 1998-03-07 21:37:31 +00:00
vfs_export.c Eradicate the variable "time" from the kernel, using various measures. 1998-03-30 09:56:58 +00:00
vfs_extattr.c Correct a significant problem with the softupdates port. Allow fsync 1998-03-29 18:23:44 +00:00
vfs_init.c Staticize. 1998-02-09 06:11:36 +00:00
vfs_lookup.c Make the rootdir handling more consistent. Now, processes always 1998-02-15 04:17:09 +00:00
vfs_mount.c If the root mount fails from a device that is not the compatability slice 1998-03-11 00:10:31 +00:00
vfs_subr.c Eradicate the variable "time" from the kernel, using various measures. 1998-03-30 09:56:58 +00:00
vfs_syscalls.c Correct a significant problem with the softupdates port. Allow fsync 1998-03-29 18:23:44 +00:00
vfs_vnops.c Removed unused #includes. 1998-02-25 05:58:50 +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 Reviewed by: dyson@freebsd.org (john Dyson), dg@root.com (david greenman) 1998-03-08 09:59:44 +00:00