summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2005-09-12 15:31:28 +0000
committerjkim <jkim@FreeBSD.org>2005-09-12 15:31:28 +0000
commit57e487868544fc44467f97d70c98087f44f9b24a (patch)
tree7ed8527008bd908d2c318292bc04a8474b86cd87 /sys/kern
parent6675921351ad4098fd35c86cc812c000b28e0ea6 (diff)
downloadFreeBSD-src-57e487868544fc44467f97d70c98087f44f9b24a.zip
FreeBSD-src-57e487868544fc44467f97d70c98087f44f9b24a.tar.gz
use monotonic `time_uptime' instead of `time_second'
Approved by: anholt (mentor) Discussed on: arch
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/vfs_subr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index 461ed1a..c2b0aeb 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -1585,7 +1585,7 @@ sched_sync(void)
syncer_final_iter = 0;
first_printf = 1;
syncer_state = SYNCER_RUNNING;
- starttime = time_second;
+ starttime = time_uptime;
EVENTHANDLER_REGISTER(shutdown_pre_sync, syncer_shutdown, td->td_proc,
SHUTDOWN_PRI_LAST);
@@ -1600,14 +1600,14 @@ sched_sync(void)
}
net_worklist_len = syncer_worklist_len - sync_vnode_count;
if (syncer_state != SYNCER_RUNNING &&
- starttime != time_second) {
+ starttime != time_uptime) {
if (first_printf) {
printf("\nSyncing disks, vnodes remaining...");
first_printf = 0;
}
printf("%d ", net_worklist_len);
}
- starttime = time_second;
+ starttime = time_uptime;
/*
* Push files whose dirty time has expired. Be careful
@@ -1696,7 +1696,7 @@ sched_sync(void)
if (syncer_state != SYNCER_RUNNING)
tsleep(&dummychan, PPAUSE, "syncfnl",
hz / SYNCER_SHUTDOWN_SPEEDUP);
- else if (time_second == starttime)
+ else if (time_uptime == starttime)
tsleep(&lbolt, PPAUSE, "syncer", 0);
}
}
OpenPOWER on IntegriCloud