diff --git a/subsys/tracing/cpu_stats.c b/subsys/tracing/cpu_stats.c index ba9ee044f0f..cba4af11f8f 100644 --- a/subsys/tracing/cpu_stats.c +++ b/subsys/tracing/cpu_stats.c @@ -160,14 +160,14 @@ static void cpu_stats_log_fn(struct k_work *item) cpu_stats_display(); cpu_stats_reset_counters(); k_delayed_work_submit(&cpu_stats_log, - CONFIG_TRACING_CPU_STATS_INTERVAL); + K_MSEC(CONFIG_TRACING_CPU_STATS_INTERVAL)); } static int cpu_stats_log_init(struct device *dev) { k_delayed_work_init(&cpu_stats_log, cpu_stats_log_fn); k_delayed_work_submit(&cpu_stats_log, - CONFIG_TRACING_CPU_STATS_INTERVAL); + K_MSEC(CONFIG_TRACING_CPU_STATS_INTERVAL)); return 0; }