aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/apm_32.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/apm_32.c')
-rw-r--r--arch/x86/kernel/apm_32.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/x86/kernel/apm_32.c b/arch/x86/kernel/apm_32.c
index 0e4f24c2a746..15f47f741983 100644
--- a/arch/x86/kernel/apm_32.c
+++ b/arch/x86/kernel/apm_32.c
@@ -227,6 +227,7 @@
227#include <linux/suspend.h> 227#include <linux/suspend.h>
228#include <linux/kthread.h> 228#include <linux/kthread.h>
229#include <linux/jiffies.h> 229#include <linux/jiffies.h>
230#include <linux/acpi.h>
230 231
231#include <asm/system.h> 232#include <asm/system.h>
232#include <asm/uaccess.h> 233#include <asm/uaccess.h>
@@ -2331,12 +2332,11 @@ static int __init apm_init(void)
2331 apm_info.disabled = 1; 2332 apm_info.disabled = 1;
2332 return -ENODEV; 2333 return -ENODEV;
2333 } 2334 }
2334 if (pm_flags & PM_ACPI) { 2335 if (!acpi_disabled) {
2335 printk(KERN_NOTICE "apm: overridden by ACPI.\n"); 2336 printk(KERN_NOTICE "apm: overridden by ACPI.\n");
2336 apm_info.disabled = 1; 2337 apm_info.disabled = 1;
2337 return -ENODEV; 2338 return -ENODEV;
2338 } 2339 }
2339 pm_flags |= PM_APM;
2340 2340
2341 /* 2341 /*
2342 * Set up the long jump entry point to the APM BIOS, which is called 2342 * Set up the long jump entry point to the APM BIOS, which is called
@@ -2428,7 +2428,6 @@ static void __exit apm_exit(void)
2428 kthread_stop(kapmd_task); 2428 kthread_stop(kapmd_task);
2429 kapmd_task = NULL; 2429 kapmd_task = NULL;
2430 } 2430 }
2431 pm_flags &= ~PM_APM;
2432} 2431}
2433 2432
2434module_init(apm_init); 2433module_init(apm_init);