apic: set initial PM state at build time
Change-Id: I7531088d0455fb405513787eb61137ff79ca8b29 Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
325cae5c94
commit
d3831180cf
2 changed files with 2 additions and 8 deletions
|
@ -84,7 +84,7 @@
|
|||
#ifdef CONFIG_DEVICE_POWER_MANAGEMENT
|
||||
#include <power.h>
|
||||
uint32_t ioapic_suspend_buf[SUSPEND_BITS_REQD / 32] = {0};
|
||||
static uint32_t ioapic_device_power_state;
|
||||
static uint32_t ioapic_device_power_state = DEVICE_PM_ACTIVE_STATE;
|
||||
#endif
|
||||
|
||||
static uint32_t __IoApicGet(int32_t offset);
|
||||
|
@ -131,9 +131,6 @@ int _ioapic_init(struct device *unused)
|
|||
ioApicRedSetHi(ix, 0);
|
||||
ioApicRedSetLo(ix, rteValue);
|
||||
}
|
||||
#ifdef CONFIG_DEVICE_POWER_MANAGEMENT
|
||||
ioapic_device_power_state = DEVICE_PM_ACTIVE_STATE;
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -195,7 +195,7 @@
|
|||
#ifdef CONFIG_DEVICE_POWER_MANAGEMENT
|
||||
#include <power.h>
|
||||
uint32_t loapic_suspend_buf[LOPIC_SUSPEND_BITS_REQD / 32] = {0};
|
||||
static uint32_t loapic_device_power_state;
|
||||
static uint32_t loapic_device_power_state = DEVICE_PM_ACTIVE_STATE;
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -274,9 +274,6 @@ static int _loapic_init(struct device *unused)
|
|||
#else
|
||||
*(volatile int *)(CONFIG_LOAPIC_BASE_ADDRESS + LOAPIC_EOI) = 0;
|
||||
#endif
|
||||
#ifdef CONFIG_DEVICE_POWER_MANAGEMENT
|
||||
loapic_device_power_state = DEVICE_PM_ACTIVE_STATE;
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue