diff options
author | Thorsten Lockert <tholo@cvs.openbsd.org> | 2004-06-24 19:35:28 +0000 |
---|---|---|
committer | Thorsten Lockert <tholo@cvs.openbsd.org> | 2004-06-24 19:35:28 +0000 |
commit | c6cc17e855e1d9fe177fba41d00de6e89fdc852e (patch) | |
tree | bdc6bde04c820ca59fe49d60185cf6ac40b44e30 /sys/netccitt | |
parent | 128dd71ffeec48b94e085c757b3626553d619e7c (diff) |
This moves access to wall and uptime variables in MI code,
encapsulating all such access into wall-defined functions
that makes sure locking is done as needed.
It also cleans up some uses of wall time vs. uptime some
places, but there is sure to be more of these needed as
well, particularily in MD code. Also, many current calls
to microtime() should probably be changed to getmicrotime(),
or to the {,get}microuptime() versions.
ok art@ deraadt@ aaron@ matthieu@ beck@ sturm@ millert@ others
"Oh, that is not your problem!" from miod@
Diffstat (limited to 'sys/netccitt')
-rw-r--r-- | sys/netccitt/hd_debug.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netccitt/hd_debug.c b/sys/netccitt/hd_debug.c index 3a3a7e0f543..e628c18c96c 100644 --- a/sys/netccitt/hd_debug.c +++ b/sys/netccitt/hd_debug.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hd_debug.c,v 1.4 2003/12/10 07:22:42 itojun Exp $ */ +/* $OpenBSD: hd_debug.c,v 1.5 2004/06/24 19:35:25 tholo Exp $ */ /* $NetBSD: hd_debug.c,v 1.6 1996/02/13 22:04:25 christos Exp $ */ /* @@ -180,7 +180,7 @@ hd_savetrace(hdp, dir, frame) htp->ht_frame = m_copy(m, 0, m->m_len); htp->ht_hdp = hdp; htp->ht_dir = dir; - htp->ht_time = time; + getmicrotime(&htp->ht_time); } void |