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 <abe.kohandel@gmail.com>
This commit is contained in:
Abe Kohandel 2021-11-26 19:38:22 -08:00 committed by Anas Nashif
commit 6c914ded79

View file

@ -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;
}