diff options
| -rw-r--r-- | drivers/acpi/processor_core.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/acpi/processor_core.c b/drivers/acpi/processor_core.c index 84e0f3c07442..2cc4b3033872 100644 --- a/drivers/acpi/processor_core.c +++ b/drivers/acpi/processor_core.c | |||
| @@ -1151,6 +1151,9 @@ static int __init acpi_processor_init(void) | |||
| 1151 | { | 1151 | { |
| 1152 | int result = 0; | 1152 | int result = 0; |
| 1153 | 1153 | ||
| 1154 | if (acpi_disabled) | ||
| 1155 | return 0; | ||
| 1156 | |||
| 1154 | memset(&errata, 0, sizeof(errata)); | 1157 | memset(&errata, 0, sizeof(errata)); |
| 1155 | 1158 | ||
| 1156 | #ifdef CONFIG_SMP | 1159 | #ifdef CONFIG_SMP |
| @@ -1197,6 +1200,9 @@ out_proc: | |||
| 1197 | 1200 | ||
| 1198 | static void __exit acpi_processor_exit(void) | 1201 | static void __exit acpi_processor_exit(void) |
| 1199 | { | 1202 | { |
| 1203 | if (acpi_disabled) | ||
| 1204 | return; | ||
| 1205 | |||
| 1200 | acpi_processor_ppc_exit(); | 1206 | acpi_processor_ppc_exit(); |
| 1201 | 1207 | ||
| 1202 | acpi_thermal_cpufreq_exit(); | 1208 | acpi_thermal_cpufreq_exit(); |
