Lines Matching full:cycles
36 static void sched_cpu_update_usage(struct _cpu *cpu, uint32_t cycles) in sched_cpu_update_usage() argument
43 cpu->usage->total += cycles; in sched_cpu_update_usage()
46 cpu->usage->current += cycles; in sched_cpu_update_usage()
58 #define sched_cpu_update_usage(cpu, cycles) do { } while (0) argument
61 static void sched_thread_update_usage(struct k_thread *thread, uint32_t cycles) in sched_thread_update_usage() argument
63 thread->base.usage.total += cycles; in sched_thread_update_usage()
66 thread->base.usage.current += cycles; in sched_thread_update_usage()
108 uint32_t cycles = usage_now() - u0; in z_sched_usage_stop() local
111 sched_thread_update_usage(cpu->current, cycles); in z_sched_usage_stop()
114 sched_cpu_update_usage(cpu, cycles); in z_sched_usage_stop()
133 uint32_t cycles = now - cpu->usage0; in z_sched_cpu_usage() local
143 sched_thread_update_usage(cpu->current, cycles); in z_sched_cpu_usage()
146 sched_cpu_update_usage(cpu, cycles); in z_sched_cpu_usage()
185 uint32_t cycles = now - cpu->usage0; in z_sched_thread_usage() local
195 sched_thread_update_usage(thread, cycles); in z_sched_thread_usage()
198 sched_cpu_update_usage(cpu, cycles); in z_sched_thread_usage()
264 uint32_t cycles = usage_now() - cpu->usage0; in k_thread_runtime_stats_disable() local
266 sched_thread_update_usage(thread, cycles); in k_thread_runtime_stats_disable()
267 sched_cpu_update_usage(cpu, cycles); in k_thread_runtime_stats_disable()
404 uint32_t cycles = now - _current_cpu->usage0; in z_thread_stats_reset() local
406 sched_cpu_update_usage(_current_cpu, cycles); in z_thread_stats_reset()