tracing: cpu_stats: add missing macro

add missing macro K_MSEC() for CONFIG_TRACING_CPU_STATS_INTERVAL

Signed-off-by: Joel Westerberg <joel@teenage.engineering>
This commit is contained in:
Joel Westerberg 2020-05-20 18:27:09 +02:00 committed by Carles Cufí
commit b2da4e24cb

View file

@ -160,14 +160,14 @@ static void cpu_stats_log_fn(struct k_work *item)
cpu_stats_display(); cpu_stats_display();
cpu_stats_reset_counters(); cpu_stats_reset_counters();
k_delayed_work_submit(&cpu_stats_log, 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) static int cpu_stats_log_init(struct device *dev)
{ {
k_delayed_work_init(&cpu_stats_log, cpu_stats_log_fn); k_delayed_work_init(&cpu_stats_log, cpu_stats_log_fn);
k_delayed_work_submit(&cpu_stats_log, k_delayed_work_submit(&cpu_stats_log,
CONFIG_TRACING_CPU_STATS_INTERVAL); K_MSEC(CONFIG_TRACING_CPU_STATS_INTERVAL));
return 0; return 0;
} }