Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 5624
b: refs/heads/master
c: 8edc81c
h: refs/heads/master
v: v3
  • Loading branch information
Len Brown committed Aug 4, 2005
1 parent 8ae642a commit d0a8cf3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 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: 62778ba1aa2589dc78c36a32edc6f5a6ccaf50c6
refs/heads/master: 8edc81cc0b80b3ec8645711e1110a84235c7030d
6 changes: 5 additions & 1 deletion trunk/drivers/acpi/osl.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,14 @@ acpi_os_vprintf(const char *fmt, va_list args)
#endif
}

extern int acpi_in_resume;
void *
acpi_os_allocate(acpi_size size)
{
return kmalloc(size, GFP_KERNEL);
if (acpi_in_resume)
return kmalloc(size, GFP_ATOMIC);
else
return kmalloc(size, GFP_KERNEL);
}

void
Expand Down
7 changes: 7 additions & 0 deletions trunk/drivers/acpi/pci_link.c
Original file line number Diff line number Diff line change
Expand Up @@ -798,6 +798,11 @@ acpi_pci_link_resume(
return_VALUE(0);
}

/*
* FIXME: this is a workaround to avoid nasty warning. It will be removed
* after every device calls pci_disable_device in .resume.
*/
int acpi_in_resume;
static int
irqrouter_resume(
struct sys_device *dev)
Expand All @@ -807,6 +812,7 @@ irqrouter_resume(

ACPI_FUNCTION_TRACE("irqrouter_resume");

acpi_in_resume = 1;
list_for_each(node, &acpi_link.entries) {
link = list_entry(node, struct acpi_pci_link, node);
if (!link) {
Expand All @@ -816,6 +822,7 @@ irqrouter_resume(
}
acpi_pci_link_resume(link);
}
acpi_in_resume = 0;
return_VALUE(0);
}

Expand Down

0 comments on commit d0a8cf3

Please sign in to comment.