1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-19 10:53:58 +00:00
freebsd/sys/nfsserver
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
..
nfs_serv.c Eradicate the variable "time" from the kernel, using various measures. 1998-03-30 09:56:58 +00:00
nfs_srvcache.c Staticize. 1998-02-09 06:11:36 +00:00
nfs_srvsock.c Eradicate the variable "time" from the kernel, using various measures. 1998-03-30 09:56:58 +00:00
nfs_srvsubs.c Eradicate the variable "time" from the kernel, using various measures. 1998-03-30 09:56:58 +00:00
nfs_syscalls.c Eradicate the variable "time" from the kernel, using various measures. 1998-03-30 09:56:58 +00:00
nfs.h Eradicate the variable "time" from the kernel, using various measures. 1998-03-30 09:56:58 +00:00
nfsm_subs.h Eradicate the variable "time" from the kernel, using various measures. 1998-03-30 09:56:58 +00:00
nfsproto.h
nfsrvcache.h
nfsrvstats.h Eradicate the variable "time" from the kernel, using various measures. 1998-03-30 09:56:58 +00:00