diff options
| author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-06-20 08:59:45 -0400 |
|---|---|---|
| committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-06-20 08:59:45 -0400 |
| commit | d59bf96cdde5b874a57bfd1425faa45da915d0b7 (patch) | |
| tree | 351a40b72514d620e5bebea2de38c26f23277ffc /drivers/acpi | |
| parent | 28df955a2ad484d602314b30183ea8496a9aa34a (diff) | |
| parent | 25f42b6af09e34c3f92107b36b5aa6edc2fdba2f (diff) | |
Merge branch 'master' of /home/trondmy/kernel/linux-2.6/
Diffstat (limited to 'drivers/acpi')
| -rw-r--r-- | drivers/acpi/pci_link.c | 3 | ||||
| -rw-r--r-- | drivers/acpi/processor_perflib.c | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/drivers/acpi/pci_link.c b/drivers/acpi/pci_link.c index 07bc6dfe662b..8920e8c6e246 100644 --- a/drivers/acpi/pci_link.c +++ b/drivers/acpi/pci_link.c | |||
| @@ -812,6 +812,9 @@ static int irqrouter_resume(struct sys_device *dev) | |||
| 812 | 812 | ||
| 813 | ACPI_FUNCTION_TRACE("irqrouter_resume"); | 813 | ACPI_FUNCTION_TRACE("irqrouter_resume"); |
| 814 | 814 | ||
| 815 | /* Make sure SCI is enabled again (Apple firmware bug?) */ | ||
| 816 | acpi_set_register(ACPI_BITREG_SCI_ENABLE, 1, ACPI_MTX_DO_NOT_LOCK); | ||
| 817 | |||
| 815 | acpi_in_resume = 1; | 818 | acpi_in_resume = 1; |
| 816 | list_for_each(node, &acpi_link.entries) { | 819 | list_for_each(node, &acpi_link.entries) { |
| 817 | link = list_entry(node, struct acpi_pci_link, node); | 820 | link = list_entry(node, struct acpi_pci_link, node); |
diff --git a/drivers/acpi/processor_perflib.c b/drivers/acpi/processor_perflib.c index abbdb37a7f5f..f36db22ce1ae 100644 --- a/drivers/acpi/processor_perflib.c +++ b/drivers/acpi/processor_perflib.c | |||
| @@ -577,6 +577,8 @@ acpi_processor_register_performance(struct acpi_processor_performance | |||
| 577 | return_VALUE(-EBUSY); | 577 | return_VALUE(-EBUSY); |
| 578 | } | 578 | } |
| 579 | 579 | ||
| 580 | WARN_ON(!performance); | ||
| 581 | |||
| 580 | pr->performance = performance; | 582 | pr->performance = performance; |
| 581 | 583 | ||
| 582 | if (acpi_processor_get_performance_info(pr)) { | 584 | if (acpi_processor_get_performance_info(pr)) { |
| @@ -609,7 +611,8 @@ acpi_processor_unregister_performance(struct acpi_processor_performance | |||
| 609 | return_VOID; | 611 | return_VOID; |
| 610 | } | 612 | } |
| 611 | 613 | ||
| 612 | kfree(pr->performance->states); | 614 | if (pr->performance) |
| 615 | kfree(pr->performance->states); | ||
| 613 | pr->performance = NULL; | 616 | pr->performance = NULL; |
| 614 | 617 | ||
| 615 | acpi_cpufreq_remove_file(pr); | 618 | acpi_cpufreq_remove_file(pr); |
