diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 1998-04-04 13:26:20 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1998-04-04 13:26:20 +0000 |
commit | 00af9731c9222d8b48655e01fadef7161f8b64dc (patch) | |
tree | d04ac6a7ae5e50842f6b6bbc5306cbce7b849c72 /sys/msdosfs | |
parent | 883674371ecbe1ce8376f70836be251397ae5327 (diff) | |
download | src-00af9731c9222d8b48655e01fadef7161f8b64dc.tar.gz src-00af9731c9222d8b48655e01fadef7161f8b64dc.zip |
Time changes mark 2:
* Figure out UTC relative to boottime. Four new functions provide
time relative to boottime.
* move "runtime" into struct proc. This helps fix the calcru()
problem in SMP.
* kill mono_time.
* add timespec{add|sub|cmp} macros to time.h. (XXX: These may change!)
* nanosleep, select & poll takes long sleeps one day at a time
Reviewed by: bde
Tested by: ache and others
Notes
Notes:
svn path=/head/; revision=35029
Diffstat (limited to 'sys/msdosfs')
-rw-r--r-- | sys/msdosfs/msdosfs_denode.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/msdosfs/msdosfs_denode.c b/sys/msdosfs/msdosfs_denode.c index 6c4513d813c6..65dfabb6e461 100644 --- a/sys/msdosfs/msdosfs_denode.c +++ b/sys/msdosfs/msdosfs_denode.c @@ -1,4 +1,4 @@ -/* $Id: msdosfs_denode.c,v 1.33 1998/03/20 02:33:35 kato Exp $ */ +/* $Id: msdosfs_denode.c,v 1.34 1998/03/26 20:52:51 phk Exp $ */ /* $NetBSD: msdosfs_denode.c,v 1.28 1998/02/10 14:10:00 mrg Exp $ */ /*- @@ -198,6 +198,7 @@ deget(pmp, dirclust, diroffset, depp) struct vnode *nvp; struct buf *bp; struct proc *p = curproc; /* XXX */ + struct timeval tv; #ifdef MSDOSFS_DEBUG printf("deget(pmp %p, dirclust %lu, diroffset %lx, depp %p)\n", @@ -345,8 +346,9 @@ deget(pmp, dirclust, diroffset, depp) } } else nvp->v_type = VREG; - SETHIGH(ldep->de_modrev, mono_time.tv_sec); - SETLOW(ldep->de_modrev, mono_time.tv_usec * 4294); + getmicroruntime(&tv); + SETHIGH(ldep->de_modrev, tv.tv_sec); + SETLOW(ldep->de_modrev, tv.tv_usec * 4294); VREF(ldep->de_devvp); *depp = ldep; return (0); |