Commit 198fd5d7 authored by Len Brown's avatar Len Brown

[ACPI] acpi_disabled is used after __initdata is freed.

fixes random battery module loading problem -- SuSE bug #30477 (Andi Kleen)
parent 9fedfe5b
...@@ -65,9 +65,9 @@ unsigned long mmu_cr4_features; ...@@ -65,9 +65,9 @@ unsigned long mmu_cr4_features;
EXPORT_SYMBOL_GPL(mmu_cr4_features); EXPORT_SYMBOL_GPL(mmu_cr4_features);
#ifdef CONFIG_ACPI_INTERPRETER #ifdef CONFIG_ACPI_INTERPRETER
int acpi_disabled __initdata = 0; int acpi_disabled = 0;
#else #else
int acpi_disabled __initdata = 1; int acpi_disabled = 1;
#endif #endif
EXPORT_SYMBOL(acpi_disabled); EXPORT_SYMBOL(acpi_disabled);
......
...@@ -64,7 +64,7 @@ struct cpuinfo_x86 boot_cpu_data; ...@@ -64,7 +64,7 @@ struct cpuinfo_x86 boot_cpu_data;
unsigned long mmu_cr4_features; unsigned long mmu_cr4_features;
EXPORT_SYMBOL_GPL(mmu_cr4_features); EXPORT_SYMBOL_GPL(mmu_cr4_features);
int acpi_disabled __initdata = 0; int acpi_disabled = 0;
/* For PCI or other memory-mapped resources */ /* For PCI or other memory-mapped resources */
unsigned long pci_mem_start = 0x10000000; unsigned long pci_mem_start = 0x10000000;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment