cleanup: include/: move power.h to power/power.h
move power.h to power/power.h and create a shim for backward-compatibility. No functional changes to the headers. A warning in the shim can be controlled with CONFIG_COMPAT_INCLUDES. Related to #16539 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
f641d099cc
commit
190e368275
30 changed files with 356 additions and 341 deletions
|
@ -23,7 +23,7 @@
|
|||
extern void *_VectorTable;
|
||||
|
||||
#ifdef CONFIG_DEVICE_POWER_MANAGEMENT
|
||||
#include <power.h>
|
||||
#include <power/power.h>
|
||||
#include <kernel_structs.h>
|
||||
#include <v2/irq.h>
|
||||
|
||||
|
|
|
@ -70,7 +70,7 @@
|
|||
#define SUSPEND_BITS_REQD (ROUND_UP((CONFIG_IOAPIC_NUM_RTES * BITS_PER_IRQ), 32))
|
||||
|
||||
#ifdef CONFIG_DEVICE_POWER_MANAGEMENT
|
||||
#include <power.h>
|
||||
#include <power/power.h>
|
||||
u32_t ioapic_suspend_buf[SUSPEND_BITS_REQD / 32] = {0};
|
||||
static u32_t ioapic_device_power_state = DEVICE_PM_ACTIVE_STATE;
|
||||
#endif
|
||||
|
|
|
@ -60,7 +60,7 @@
|
|||
#define LOPIC_SSPND_BITS_PER_IRQ 1 /* Just the one for enable disable*/
|
||||
#define LOPIC_SUSPEND_BITS_REQD (ROUND_UP((LOAPIC_IRQ_COUNT * LOPIC_SSPND_BITS_PER_IRQ), 32))
|
||||
#ifdef CONFIG_DEVICE_POWER_MANAGEMENT
|
||||
#include <power.h>
|
||||
#include <power/power.h>
|
||||
u32_t loapic_suspend_buf[LOPIC_SUSPEND_BITS_REQD / 32] = {0};
|
||||
static u32_t loapic_device_power_state = DEVICE_PM_ACTIVE_STATE;
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue