summaryrefslogtreecommitdiff
path: root/kern/thread.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2018-11-19 00:58:00 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2018-11-19 00:58:00 +0100
commit2eec9a3688ab8a673a058312388cfff640acdd13 (patch)
treefee362298c73e0135cfc049d72c22a6c50a78caf /kern/thread.c
parentd1f39c38df5aee6df6661bcae2c2ca9f79428a8f (diff)
Drop SIMPLE_CLOCK support
This wasn't building and is not useful with nowaday's hardware. * configfrag.ac (SIMPLE_CLOCK): Do not define. * kern/sched.h [SIMPLE_CLOCK] (sched_usec): Remove variable declaration. * kern/sched_prim.c [SIMPLE_CLOCK] (sched_usec): Remove variable. [SIMPLE_CLOCK] (sched_init): Do not initialize sched_usec variable. [SIMPLE_CLOCK] (recompute_priorities): Do not tinker sched_usec variable. * kern/thread.c [SIMPLE_CLOCK] (thread_info): Do not ajust for clock drift.
Diffstat (limited to 'kern/thread.c')
-rw-r--r--kern/thread.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/kern/thread.c b/kern/thread.c
index 8637e36f..29c26d44 100644
--- a/kern/thread.c
+++ b/kern/thread.c
@@ -1527,13 +1527,6 @@ kern_return_t thread_info(
basic_info->cpu_usage = thread->cpu_usage /
(TIMER_RATE/TH_USAGE_SCALE);
basic_info->cpu_usage = (basic_info->cpu_usage * 3) / 5;
-#if SIMPLE_CLOCK
- /*
- * Clock drift compensation.
- */
- basic_info->cpu_usage =
- (basic_info->cpu_usage * 1000000)/sched_usec;
-#endif /* SIMPLE_CLOCK */
flags = 0;
if (thread->state & TH_SWAPPED)