From a00a2d6daf8e1aa5488be408953670ca968c7625 Mon Sep 17 00:00:00 2001 From: mini Date: Sun, 24 Nov 2002 06:43:21 +0000 Subject: Get the wall clock time from the KSE mailbox, rather than doing another syscall. --- lib/libpthread/thread/thr_kern.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libpthread/thread/thr_kern.c') diff --git a/lib/libpthread/thread/thr_kern.c b/lib/libpthread/thread/thr_kern.c index 892b647..087e1df 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; /* -- cgit v1.1