We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2427ff commit 76c309dCopy full SHA for 76c309d
kernel/thread.c
@@ -1050,7 +1050,7 @@ void z_thread_mark_switched_out(void)
1050
diff = timing_cycles_get(&thread->rt_stats.last_switched_in, &now);
1051
#else
1052
now = k_cycle_get_32();
1053
- diff = (uint64_t)now - thread->rt_stats.last_switched_in;
+ diff = (uint64_t)(now - thread->rt_stats.last_switched_in);
1054
thread->rt_stats.last_switched_in = 0;
1055
#endif /* CONFIG_THREAD_RUNTIME_STATS_USE_TIMING_FUNCTIONS */
1056
0 commit comments