power: move z_pm_save_idle_exit prototype to power.h

Maintain power prototypes in power.h instead of kernel and arch headers.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2020-09-04 10:47:50 -04:00
commit c10d4b377d
5 changed files with 5 additions and 8 deletions

View file

@ -27,6 +27,7 @@
#include <sw_isr_table.h>
#include <irq.h>
#include <tracing/tracing.h>
#include <power/power.h>
extern void z_arm_reserved(void);

View file

@ -18,6 +18,7 @@
#include "posix_core.h"
#include "irq.h"
#include "kswap.h"
#include <power/power.h>
int arch_swap(unsigned int key)
{

View file

@ -28,6 +28,7 @@
#include <arch/common/addr_types.h>
#include <arch/x86/ia32/segmentation.h>
#include <power/power.h>
#endif /* _ASMLANGUAGE */
@ -234,12 +235,6 @@ typedef struct s_isrList {
}
#ifdef CONFIG_PM
/*
* FIXME: z_pm_save_idle_exit is defined in kernel.h, which cannot be
* included here due to circular dependency
*/
extern void z_pm_save_idle_exit(int32_t ticks);
static inline void arch_irq_direct_pm(void)
{
if (_kernel.idle) {

View file

@ -4939,8 +4939,6 @@ static inline void k_cpu_atomic_idle(unsigned int key)
/**
* @internal
*/
extern void z_pm_save_idle_exit(int32_t ticks);
#ifdef ARCH_EXCEPT
/* This architecture has direct support for triggering a CPU exception */
#define z_except_reason(reason) ARCH_EXCEPT(reason)

View file

@ -318,6 +318,8 @@ void pm_notify_power_state_exit(enum power_states state);
* @}
*/
void z_pm_save_idle_exit(int32_t ticks);
#endif /* CONFIG_PM */
#ifdef __cplusplus