summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/libkse/thread/thr_kern.c4
-rw-r--r--lib/libpthread/thread/thr_kern.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/libkse/thread/thr_kern.c b/lib/libkse/thread/thr_kern.c
index 892b647..087e1df 100644
--- a/lib/libkse/thread/thr_kern.c
+++ b/lib/libkse/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;
/*
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;
/*
OpenPOWER on IntegriCloud