Subject: CVS commit: [simonb-timecounters] src/sys
To: None <source-changes@NetBSD.org>
From: Simon Burge <simonb@netbsd.org>
List: source-changes
Date: 02/05/2006 11:42:39
Module Name: src
Committed By: simonb
Date: Sun Feb 5 11:42:39 UTC 2006
Modified Files:
src/sys/fs/ptyfs [simonb-timecounters]: ptyfs_vnops.c
src/sys/fs/tmpfs [simonb-timecounters]: tmpfs_subr.c
src/sys/ufs/ext2fs [simonb-timecounters]: ext2fs_subr.c
src/sys/ufs/ffs [simonb-timecounters]: ffs_inode.c
src/sys/ufs/lfs [simonb-timecounters]: lfs_itimes.c
Log Message:
In the *itimes functions, just call getnanotime() at the start of
the function and use the result if needed, rather than the previous
conditional calls/assignments method. The code is clearer this way,
and benchmarks at about the same speed.
To generate a diff of this commit:
cvs rdiff -r1.12.6.1 -r1.12.6.2 src/sys/fs/ptyfs/ptyfs_vnops.c
cvs rdiff -r1.17.6.1 -r1.17.6.2 src/sys/fs/tmpfs/tmpfs_subr.c
cvs rdiff -r1.20.6.1 -r1.20.6.2 src/sys/ufs/ext2fs/ext2fs_subr.c
cvs rdiff -r1.79.6.1 -r1.79.6.2 src/sys/ufs/ffs/ffs_inode.c
cvs rdiff -r1.4.6.1 -r1.4.6.2 src/sys/ufs/lfs/lfs_itimes.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.