From b2da4e24cbe31f918f4876f8cb4611189b3dded5 Mon Sep 17 00:00:00 2001 From: Joel Westerberg Date: Wed, 20 May 2020 18:27:09 +0200 Subject: [PATCH] tracing: cpu_stats: add missing macro add missing macro K_MSEC() for CONFIG_TRACING_CPU_STATS_INTERVAL Signed-off-by: Joel Westerberg --- subsys/tracing/cpu_stats.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }