Skip to content

Commit

Permalink
schedstats: revert RIOT-OS#6975, use 32Bit again
Browse files Browse the repository at this point in the history
  • Loading branch information
smlng authored and bergzand committed Sep 29, 2017
1 parent d877d76 commit 41eba55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/include/sched.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
2 changes: 1 addition & 1 deletion core/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 41eba55

Please sign in to comment.