Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 145611
b: refs/heads/master
c: 9a2755c
h: refs/heads/master
i:
  145609: 1cc652f
  145607: ecf4bd8
v: v3
  • Loading branch information
Weidong Han authored and Ingo Molnar committed Apr 19, 2009
1 parent 94a5c6e commit 4ad0f03
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 03ea81550676296d94596e4337c771c6ba29f542
refs/heads/master: 9a2755c3569e4db92bd9b1daadeddb4045b0cccd
15 changes: 9 additions & 6 deletions trunk/arch/x86/kernel/apic/apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -2032,7 +2032,7 @@ static int lapic_resume(struct sys_device *dev)
return 0;

local_irq_save(flags);
if (x2apic) {
if (intr_remapping_enabled) {
ioapic_entries = alloc_ioapic_entries();
if (!ioapic_entries) {
WARN(1, "Alloc ioapic_entries in lapic resume failed.");
Expand All @@ -2048,8 +2048,10 @@ static int lapic_resume(struct sys_device *dev)

mask_IO_APIC_setup(ioapic_entries);
mask_8259A();
enable_x2apic();
}

if (x2apic)
enable_x2apic();
#else
if (!apic_pm_state.active)
return 0;
Expand Down Expand Up @@ -2097,10 +2099,12 @@ static int lapic_resume(struct sys_device *dev)
apic_read(APIC_ESR);

#ifdef CONFIG_INTR_REMAP
if (intr_remapping_enabled)
reenable_intr_remapping(EIM_32BIT_APIC_ID);
if (intr_remapping_enabled) {
if (x2apic)
reenable_intr_remapping(EIM_32BIT_APIC_ID);
else
reenable_intr_remapping(EIM_8BIT_APIC_ID);

if (x2apic) {
unmask_8259A();
restore_IO_APIC_setup(ioapic_entries);
free_ioapic_entries(ioapic_entries);
Expand All @@ -2109,7 +2113,6 @@ static int lapic_resume(struct sys_device *dev)

local_irq_restore(flags);


return 0;
}

Expand Down

0 comments on commit 4ad0f03

Please sign in to comment.