Branch data Line data Source code
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 <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 18 : 0 : static inline void pm_stats_start(void) {} 19 : 0 : static inline void pm_stats_stop(void) {} 20 : 0 : static inline void pm_stats_update(enum pm_state state) {} 21 : : #endif /* CONFIG_PM_STATS */ 22 : : 23 : : #endif /* ZEPHYR_SUBSYS_PM_PM_STATS_H_ */