1 Aug 2002 03:26
Culling a few calls to microtime()
Simon Burge <simonb <at> wasabisystems.com>
2002-08-01 01:26:55 GMT
2002-08-01 01:26:55 GMT
This is a little change to reduce a few calls to microtime() based on some other similar code in the kernel. Seem reasonable? Simon. -- Simon Burge <simonb <at> wasabisystems.com> NetBSD Development, Support and Service: http://www.wasabisystems.com/ Index: miscfs/kernfs/kernfs_vnops.c =================================================================== RCS file: /cvsroot/syssrc/sys/miscfs/kernfs/kernfs_vnops.c,v retrieving revision 1.82 diff -d -p -u -r1.82 kernfs_vnops.c --- miscfs/kernfs/kernfs_vnops.c 2002/07/19 18:35:44 1.82 +++ miscfs/kernfs/kernfs_vnops.c 2002/08/01 01:21:44 <at> <at> -466,7 +466,6 <at> <at> kernfs_getattr(v) } */ *ap = v; struct vnode *vp = ap->a_vp; struct vattr *vap = ap->a_vap; - struct timeval tv; int error = 0; char strbuf[KSTRING], *buf; <at> <at> -478,10 +477,11 <at> <at> kernfs_getattr(v) vap->va_size = 0; vap->va_blocksize = DEV_BSIZE; /* - * Make all times be current TOD. + * Make all times be current TOD. Avoid microtime(9), it's slow. + * We don't guard the read from time(9) with splclock(9) since we(Continue reading)
RSS Feed