zephyr/subsys/pm/pm_stats.h
Gerard Marull-Paretas 5113c1418d subsystems: migrate includes to <zephyr/...>
In order to bring consistency in-tree, migrate all subsystems code to
the new prefix <zephyr/...>. Note that the conversion has been scripted,
refer to zephyrproject-rtos#45388 for more details.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-05-09 12:07:35 +02:00

24 lines
584 B
C

/*
* 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 <zephyr/pm/state.h>
#ifdef CONFIG_PM_STATS
void pm_stats_start(void);
void pm_stats_stop(void);
void pm_stats_update(enum pm_state state);
#else
static inline void pm_stats_start(void) {}
static inline void pm_stats_stop(void) {}
static inline void pm_stats_update(enum pm_state state) {}
#endif /* CONFIG_PM_STATS */
#endif /* ZEPHYR_SUBSYS_PM_PM_STATS_H_ */