2021-11-23 02:08:35 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2018 Intel Corporation.
|
|
|
|
* Copyright (c) 2021 Nordic Semiconductor ASA
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef ZEPHYR_SUBSYS_PM_PM_STATS_H_
|
|
|
|
#define ZEPHYR_SUBSYS_PM_PM_STATS_H_
|
|
|
|
|
|
|
|
#include <pm/state.h>
|
|
|
|
|
|
|
|
#ifdef CONFIG_PM_STATS
|
2021-11-23 02:14:10 +08:00
|
|
|
void pm_stats_start(void);
|
|
|
|
void pm_stats_stop(void);
|
2021-11-23 02:08:35 +08:00
|
|
|
void pm_stats_update(enum pm_state state);
|
|
|
|
#else
|
2021-11-23 02:14:10 +08:00
|
|
|
static inline void pm_stats_start(void) {}
|
|
|
|
static inline void pm_stats_stop(void) {}
|
2021-11-23 02:08:35 +08:00
|
|
|
static inline void pm_stats_update(enum pm_state state) {}
|
|
|
|
#endif /* CONFIG_PM_STATS */
|
|
|
|
|
|
|
|
#endif /* ZEPHYR_SUBSYS_PM_PM_STATS_H_ */
|