Lines Matching refs:current
42 if (cpu->current != cpu->idle_thread) { in sched_cpu_update_usage()
46 cpu->usage->current += cycles; in sched_cpu_update_usage()
48 if (cpu->usage->longest < cpu->usage->current) { in sched_cpu_update_usage()
49 cpu->usage->longest = cpu->usage->current; in sched_cpu_update_usage()
52 cpu->usage->current = 0; in sched_cpu_update_usage()
66 thread->base.usage.current += cycles; in sched_thread_update_usage()
68 if (thread->base.usage.longest < thread->base.usage.current) { in sched_thread_update_usage()
69 thread->base.usage.longest = thread->base.usage.current; in sched_thread_update_usage()
85 thread->base.usage.current = 0; in z_sched_usage_start()
110 if (cpu->current->base.usage.track_usage) { in z_sched_usage_stop()
111 sched_thread_update_usage(cpu->current, cycles); in z_sched_usage_stop()
142 if (cpu->current->base.usage.track_usage) { in z_sched_cpu_usage()
143 sched_thread_update_usage(cpu->current, cycles); in z_sched_cpu_usage()
153 stats->current_cycles = cpu->usage->current; in z_sched_cpu_usage()
183 if (thread == cpu->current) { in z_sched_thread_usage()
209 stats->current_cycles = thread->base.usage.current; in z_sched_thread_usage()
241 thread->base.usage.current = 0; in k_thread_runtime_stats_enable()
263 if (thread == cpu->current) { in k_thread_runtime_stats_disable()
304 _kernel.cpus[i].usage->current = 0; in k_sys_runtime_stats_enable()
381 stats->current = 0ULL; in z_thread_stats_reset()
386 if (thread != _current_cpu->current) { in z_thread_stats_reset()