freebsd-src/sys
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
..
alpha The linux chown syscall is more like lchown, a new chown syscall that 1998-03-29 07:59:10 +00:00
amd64 Eradicate the variable "time" from the kernel, using various measures. 1998-03-30 09:56:58 +00:00
compat Eradicate the variable "time" from the kernel, using various measures. 1998-03-30 09:56:58 +00:00
compile
conf Export MD5Transform in md5.c and remove a private version in random_machdep.c 1998-03-29 11:55:06 +00:00
ddb Ensure that the linker sets for commands exist by putting a standard 1998-02-13 02:19:29 +00:00
dev Don't use fast interrupts when initialized through PnP. if_ed does 1998-03-29 03:22:19 +00:00
fs Fix dead hang writing to FAT 1998-03-28 07:22:03 +00:00
geom Slightly more correct initialisation of the new buf struct for soft-updates. 1998-03-09 20:39:26 +00:00
gnu Eradicate the variable "time" from the kernel, using various measures. 1998-03-30 09:56:58 +00:00
i386 Eradicate the variable "time" from the kernel, using various measures. 1998-03-30 09:56:58 +00:00
isa Eradicate the variable "time" from the kernel, using various measures. 1998-03-30 09:56:58 +00:00
isofs/cd9660 Reviewed by: dyson@freebsd.org (john Dyson), dg@root.com (david greenman) 1998-03-08 09:59:44 +00:00
kern Eradicate the variable "time" from the kernel, using various measures. 1998-03-30 09:56:58 +00:00
libkern Make our v_usecount vnode reference count work identically to the 1998-01-06 05:26:17 +00:00
miscfs Moved some #includes from <sys/param.h> nearer to where they are actually 1998-03-28 10:33:27 +00:00
modules Give this a shot at actually working as an LKM.. 1998-03-27 04:05:08 +00:00
msdosfs Fix dead hang writing to FAT 1998-03-28 07:22:03 +00:00
net Eradicate the variable "time" from the kernel, using various measures. 1998-03-30 09:56:58 +00:00
netatalk Eradicate the variable "time" from the kernel, using various measures. 1998-03-30 09:56:58 +00:00
netinet Eradicate the variable "time" from the kernel, using various measures. 1998-03-30 09:56:58 +00:00
netipx Eradicate the variable "time" from the kernel, using various measures. 1998-03-30 09:56:58 +00:00
netkey Eradicate the variable "time" from the kernel, using various measures. 1998-03-30 09:56:58 +00:00
netnatm Staticize. 1998-02-09 06:11:36 +00:00
netns Make INET a proper option. 1998-01-08 23:42:31 +00:00
nfs Eradicate the variable "time" from the kernel, using various measures. 1998-03-30 09:56:58 +00:00
nfsclient Eradicate the variable "time" from the kernel, using various measures. 1998-03-30 09:56:58 +00:00
nfsserver Eradicate the variable "time" from the kernel, using various measures. 1998-03-30 09:56:58 +00:00
pc98 Sync with sys/i386/isa/if_ed.c revision 1.138. 1998-03-29 12:48:46 +00:00
pccard Uninitialized pointer reference may happen on particular environment. 1998-03-19 16:19:16 +00:00
pci Eradicate the variable "time" from the kernel, using various measures. 1998-03-30 09:56:58 +00:00
posix4 The system call stubs for the sched_* system calls can't be 1998-03-28 22:44:28 +00:00
powerpc/include
rpc
scsi Moved some #includes from <sys/param.h> nearer to where they are actually 1998-03-28 10:33:27 +00:00
sys Eradicate the variable "time" from the kernel, using various measures. 1998-03-30 09:56:58 +00:00
tools Use __inline instead of inline to prevent pedantic compiler warnings. 1997-12-19 23:25:16 +00:00
ufs Eradicate the variable "time" from the kernel, using various measures. 1998-03-30 09:56:58 +00:00
vm Eradicate the variable "time" from the kernel, using various measures. 1998-03-30 09:56:58 +00:00
Makefile Test for the existance of ${MACHINE}/boot before trying to build it. 1998-02-20 07:37:08 +00:00