1 /*
2  * Copyright (c) 2018 Intel Corporation.
3  * Copyright (c) 2021 Nordic Semiconductor ASA
4  *
5  * SPDX-License-Identifier: Apache-2.0
6  */
7 
8 #ifndef ZEPHYR_SUBSYS_PM_PM_STATS_H_
9 #define ZEPHYR_SUBSYS_PM_PM_STATS_H_
10 
11 #include <zephyr/pm/state.h>
12 
13 #ifdef CONFIG_PM_STATS
14 void pm_stats_start(void);
15 void pm_stats_stop(void);
16 void pm_stats_update(enum pm_state state);
17 #else
pm_stats_start(void)18 static inline void pm_stats_start(void) {}
pm_stats_stop(void)19 static inline void pm_stats_stop(void) {}
pm_stats_update(enum pm_state state)20 static inline void pm_stats_update(enum pm_state state) {}
21 #endif /* CONFIG_PM_STATS */
22 
23 #endif /* ZEPHYR_SUBSYS_PM_PM_STATS_H_ */
24