diff options
author | phk <phk@FreeBSD.org> | 1998-03-26 20:54:05 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1998-03-26 20:54:05 +0000 |
commit | 00475b662ad28e7f09931eb67a642ba1ee36db99 (patch) | |
tree | 12dd2aed1e3b8ecf5eb4152bf06ffa8c3ede0d7e /sys/miscfs/devfs/devfs_tree.c | |
parent | ff4953fbcc9f747429234d5971a802bb653e451a (diff) | |
download | FreeBSD-src-00475b662ad28e7f09931eb67a642ba1ee36db99.zip FreeBSD-src-00475b662ad28e7f09931eb67a642ba1ee36db99.tar.gz |
Add two new functions, get{micro|nano}time.
They are atomic, but return in essence what is in the "time" variable.
gettime() is now a macro front for getmicrotime().
Various patches to use the two new functions instead of the various
hacks used in their absence.
Some puntuation and grammer patches from Bruce.
A couple of XXX comments.
Diffstat (limited to 'sys/miscfs/devfs/devfs_tree.c')
-rw-r--r-- | sys/miscfs/devfs/devfs_tree.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/miscfs/devfs/devfs_tree.c b/sys/miscfs/devfs/devfs_tree.c index c2ef85b..20d46f1 100644 --- a/sys/miscfs/devfs/devfs_tree.c +++ b/sys/miscfs/devfs/devfs_tree.c @@ -24,7 +24,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: devfs_tree.c,v 1.48 1997/11/08 19:02:26 julian Exp $ + * $Id: devfs_tree.c,v 1.49 1998/01/02 07:31:06 julian Exp $ */ #include "opt_devfs.h" @@ -435,7 +435,7 @@ dev_add_node(int entrytype, union typeinfo *by, dn_p proto, */ bzero(dnp,sizeof(devnode_t)); dnp->type = entrytype; - TIMEVAL_TO_TIMESPEC(&time,&(dnp->ctime)) + getnanotime(&(dnp->ctime)); dnp->mtime = dnp->ctime; dnp->atime = dnp->ctime; dnp->nextsibling = dnp; @@ -527,7 +527,7 @@ int dev_touch(devnm_p key) /* update the node for this dev */ { DBPRINT(("dev_touch\n")); - TIMEVAL_TO_TIMESPEC(&time,&(key->dnp->mtime)) + getnanotime(&(key->dnp->mtime)); return 0; /*XXX*/ } |