pm: Fix policy manager header

Policy manager header has to be in the include for applications.
Also it had several function prototypes that are not part of the policy.
These functions were moved from the policy header to a dedicated private
header.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
Flavio Ceolin 2021-06-11 09:22:33 -07:00 committed by Anas Nashif
commit 4f609886de
8 changed files with 39 additions and 16 deletions

26
include/pm/policy.h Normal file
View file

@ -0,0 +1,26 @@
/*
* Copyright (c) 2018 Intel Corporation.
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_PM_POLICY_H_
#define ZEPHYR_INCLUDE_PM_POLICY_H_
#include <pm/state.h>
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Function to get the next PM state based on the ticks
*/
struct pm_state_info pm_policy_next_state(int32_t ticks);
#ifdef __cplusplus
}
#endif
#endif /* ZEPHYR_INCLUDE_PM_POLICY_H_ */