Commit c8c3d32a authored by Flavio Ceolin's avatar Flavio Ceolin Committed by Anas Nashif
Browse files

pm: Fix function prototype visibility



z_pm_save_idle_exit() is only declared if CONFIG_PM is enabled but
unconditionally defined. Just move it around in the header to always
be declared.

Signed-off-by: default avatarFlavio Ceolin <flavio.ceolin@intel.com>
parent 32cc7bc0
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -199,9 +199,6 @@ void pm_power_state_exit_post_ops(struct pm_state_info info);
 * @}
 */


void z_pm_save_idle_exit(int32_t ticks);

#else  /* CONFIG_PM */

#define pm_notifier_register(notifier)
@@ -216,6 +213,8 @@ void z_pm_save_idle_exit(int32_t ticks);

#endif /* CONFIG_PM */

void z_pm_save_idle_exit(int32_t ticks);

#ifdef __cplusplus
}
#endif