Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 145653
b: refs/heads/master
c: 3d58829
h: refs/heads/master
i:
  145651: 2a64a72
v: v3
  • Loading branch information
Jiri Slaby authored and Ingo Molnar committed Jun 2, 2009
1 parent 14f66b2 commit e7da571
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 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: 58f892e022e88438183c48661dcdc6a2997dab99
refs/heads/master: 3d58829b0510244596079c1d2f1762c53aef2e97
11 changes: 6 additions & 5 deletions trunk/arch/x86/kernel/apic/apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -2027,7 +2027,7 @@ static int lapic_resume(struct sys_device *dev)
unsigned int l, h;
unsigned long flags;
int maxlvt;
int ret;
int ret = 0;
struct IO_APIC_route_entry **ioapic_entries = NULL;

if (!apic_pm_state.active)
Expand All @@ -2038,14 +2038,15 @@ static int lapic_resume(struct sys_device *dev)
ioapic_entries = alloc_ioapic_entries();
if (!ioapic_entries) {
WARN(1, "Alloc ioapic_entries in lapic resume failed.");
return -ENOMEM;
ret = -ENOMEM;
goto restore;
}

ret = save_IO_APIC_setup(ioapic_entries);
if (ret) {
WARN(1, "Saving IO-APIC state failed: %d\n", ret);
free_ioapic_entries(ioapic_entries);
return ret;
goto restore;
}

mask_IO_APIC_setup(ioapic_entries);
Expand Down Expand Up @@ -2097,10 +2098,10 @@ static int lapic_resume(struct sys_device *dev)
restore_IO_APIC_setup(ioapic_entries);
free_ioapic_entries(ioapic_entries);
}

restore:
local_irq_restore(flags);

return 0;
return ret;
}

/*
Expand Down

0 comments on commit e7da571

Please sign in to comment.