From 6c914ded793cf32fb574e5d3fd4d9eaeb93226fc Mon Sep 17 00:00:00 2001 From: Abe Kohandel Date: Fri, 26 Nov 2021 19:38:22 -0800 Subject: [PATCH] pm: tracing: Correct compilation for tracing Correct an issue that prevents CONFIG_TRACING and CONFIG_PM_DEVICE to be enabled at the same time. Signed-off-by: Abe Kohandel --- subsys/pm/pm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/pm/pm.c b/subsys/pm/pm.c index 9d216823c82..ab8901dc1a6 100644 --- a/subsys/pm/pm.c +++ b/subsys/pm/pm.c @@ -237,7 +237,7 @@ bool pm_system_suspend(int32_t ticks) z_power_states[id].state = PM_STATE_ACTIVE; (void)atomic_add(&z_cpus_active, 1); SYS_PORT_TRACING_FUNC_EXIT(pm, system_suspend, ticks, - _handle_device_abort(z_power_states[id])); + z_power_states[id].state); ret = false; goto end; }