diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2005-08-04 13:36:25 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-08-04 13:36:25 -0400 |
commit | fd6f31c31825f62eb91f491e8316129e5ce81fc6 (patch) | |
tree | 2fdc05b8695d8e04171c2e2d26c9ebbec1dbb954 | |
parent | 9d343219e33e8b49d754ea9b2e45f6c7da87f4fb (diff) | |
parent | 8edc81cc0b80b3ec8645711e1110a84235c7030d (diff) |
Merge master.kernel.org:/pub/scm/linux/kernel/git/lenb/to-linus
-rw-r--r-- | drivers/acpi/dispatcher/dswload.c | 6 | ||||
-rw-r--r-- | drivers/acpi/osl.c | 6 | ||||
-rw-r--r-- | drivers/acpi/pci_link.c | 7 |
3 files changed, 12 insertions, 7 deletions
diff --git a/drivers/acpi/dispatcher/dswload.c b/drivers/acpi/dispatcher/dswload.c index 1ac197ccfc80..d11620018421 100644 --- a/drivers/acpi/dispatcher/dswload.c +++ b/drivers/acpi/dispatcher/dswload.c | |||
@@ -491,12 +491,6 @@ acpi_ds_load2_begin_op ( | |||
491 | if ((!(walk_state->op_info->flags & AML_NSOPCODE) && | 491 | if ((!(walk_state->op_info->flags & AML_NSOPCODE) && |
492 | (walk_state->opcode != AML_INT_NAMEPATH_OP)) || | 492 | (walk_state->opcode != AML_INT_NAMEPATH_OP)) || |
493 | (!(walk_state->op_info->flags & AML_NAMED))) { | 493 | (!(walk_state->op_info->flags & AML_NAMED))) { |
494 | if ((walk_state->op_info->class == AML_CLASS_EXECUTE) || | ||
495 | (walk_state->op_info->class == AML_CLASS_CONTROL)) { | ||
496 | ACPI_REPORT_WARNING (( | ||
497 | "Encountered executable code at module level, [%s]\n", | ||
498 | acpi_ps_get_opcode_name (walk_state->opcode))); | ||
499 | } | ||
500 | return_ACPI_STATUS (AE_OK); | 494 | return_ACPI_STATUS (AE_OK); |
501 | } | 495 | } |
502 | 496 | ||
diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c index bdd9f37f8101..7289da3c4db6 100644 --- a/drivers/acpi/osl.c +++ b/drivers/acpi/osl.c | |||
@@ -145,10 +145,14 @@ acpi_os_vprintf(const char *fmt, va_list args) | |||
145 | #endif | 145 | #endif |
146 | } | 146 | } |
147 | 147 | ||
148 | extern int acpi_in_resume; | ||
148 | void * | 149 | void * |
149 | acpi_os_allocate(acpi_size size) | 150 | acpi_os_allocate(acpi_size size) |
150 | { | 151 | { |
151 | return kmalloc(size, GFP_KERNEL); | 152 | if (acpi_in_resume) |
153 | return kmalloc(size, GFP_ATOMIC); | ||
154 | else | ||
155 | return kmalloc(size, GFP_KERNEL); | ||
152 | } | 156 | } |
153 | 157 | ||
154 | void | 158 | void |
diff --git a/drivers/acpi/pci_link.c b/drivers/acpi/pci_link.c index 65cea07abbc3..834c2ceff1aa 100644 --- a/drivers/acpi/pci_link.c +++ b/drivers/acpi/pci_link.c | |||
@@ -798,6 +798,11 @@ acpi_pci_link_resume( | |||
798 | return_VALUE(0); | 798 | return_VALUE(0); |
799 | } | 799 | } |
800 | 800 | ||
801 | /* | ||
802 | * FIXME: this is a workaround to avoid nasty warning. It will be removed | ||
803 | * after every device calls pci_disable_device in .resume. | ||
804 | */ | ||
805 | int acpi_in_resume; | ||
801 | static int | 806 | static int |
802 | irqrouter_resume( | 807 | irqrouter_resume( |
803 | struct sys_device *dev) | 808 | struct sys_device *dev) |
@@ -807,6 +812,7 @@ irqrouter_resume( | |||
807 | 812 | ||
808 | ACPI_FUNCTION_TRACE("irqrouter_resume"); | 813 | ACPI_FUNCTION_TRACE("irqrouter_resume"); |
809 | 814 | ||
815 | acpi_in_resume = 1; | ||
810 | list_for_each(node, &acpi_link.entries) { | 816 | list_for_each(node, &acpi_link.entries) { |
811 | link = list_entry(node, struct acpi_pci_link, node); | 817 | link = list_entry(node, struct acpi_pci_link, node); |
812 | if (!link) { | 818 | if (!link) { |
@@ -816,6 +822,7 @@ irqrouter_resume( | |||
816 | } | 822 | } |
817 | acpi_pci_link_resume(link); | 823 | acpi_pci_link_resume(link); |
818 | } | 824 | } |
825 | acpi_in_resume = 0; | ||
819 | return_VALUE(0); | 826 | return_VALUE(0); |
820 | } | 827 | } |
821 | 828 | ||