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:
parent
164434a01e
commit
b2da4e24cb
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue