From e7136e2dde2ce431a655ab1ff5a88257b29dbaaf Mon Sep 17 00:00:00 2001 From: smlng Date: Thu, 1 Jun 2017 10:07:14 +0200 Subject: [PATCH] schedstats: revert #6975, use 32Bit again --- core/include/sched.h | 2 +- core/sched.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/include/sched.h b/core/include/sched.h index 0c11db12ef..67c85fa203 100644 --- a/core/include/sched.h +++ b/core/include/sched.h @@ -179,7 +179,7 @@ NORETURN void sched_task_exit(void); * Scheduler statistics */ typedef struct { - uint64_t laststart; /**< Time stamp of the last time this thread was + uint32_t laststart; /**< Time stamp of the last time this thread was scheduled to run */ unsigned int schedules; /**< How often the thread was scheduled to run */ uint64_t runtime_ticks; /**< The total runtime of this thread in ticks */ diff --git a/core/sched.c b/core/sched.c index 59ed1f5f9f..b132a1a7e7 100644 --- a/core/sched.c +++ b/core/sched.c @@ -101,7 +101,7 @@ int __attribute__((used)) sched_run(void) } #ifdef MODULE_SCHEDSTATISTICS - uint64_t now = _xtimer_now64(); + uint32_t now = xtimer_now().ticks32; #endif if (active_thread) {