summaryrefslogtreecommitdiff
path: root/lib/libpthread/thread
diff options
context:
space:
mode:
authorJonathan Mini <mini@FreeBSD.org>2002-11-24 06:43:21 +0000
committerJonathan Mini <mini@FreeBSD.org>2002-11-24 06:43:21 +0000
commit4df51f23bbae3e37618843dd042e984a9a23ff86 (patch)
treeb55b59d6080519121adf1981da23c1dfd6835388 /lib/libpthread/thread
parent13dc71ed4048645aa7c9a9d2ff6e9e5516772306 (diff)
Notes
Diffstat (limited to 'lib/libpthread/thread')
-rw-r--r--lib/libpthread/thread/thr_kern.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libpthread/thread/thr_kern.c b/lib/libpthread/thread/thr_kern.c
index 892b6475c01f..087e1df88ea8 100644
--- a/lib/libpthread/thread/thr_kern.c
+++ b/lib/libpthread/thread/thr_kern.c
@@ -242,8 +242,8 @@ _thread_kern_scheduler(struct kse_mailbox *km)
while (!TAILQ_EMPTY(&_thread_list)) {
/* Get the current time of day. */
- gettimeofday((struct timeval *) &_sched_tod, NULL);
- TIMEVAL_TO_TIMESPEC(&_sched_tod, &ts);
+ ts = km->km_timeofday;
+ TIMESPEC_TO_TIMEVAL(&_sched_tod, &ts);
current_tick = _sched_ticks;
/*