Commit a71c59c4 authored by Pawel Sikora's avatar Pawel Sikora Committed by Linus Torvalds

[PATCH] apm_info.disabled fix

This minor fix is required to proper init "APM emulation" on HP-OmniBooks. 
(An external patch).  "APM emulation" is very useful if you want to use a tool
which looks into /proc/apm for getting informations about battery charging.
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 77dc05e7
...@@ -2271,10 +2271,12 @@ static int __init apm_init(void) ...@@ -2271,10 +2271,12 @@ static int __init apm_init(void)
} }
if ((num_online_cpus() > 1) && !power_off && !smp) { if ((num_online_cpus() > 1) && !power_off && !smp) {
printk(KERN_NOTICE "apm: disabled - APM is not SMP safe.\n"); printk(KERN_NOTICE "apm: disabled - APM is not SMP safe.\n");
apm_info.disabled = 1;
return -ENODEV; return -ENODEV;
} }
if (PM_IS_ACTIVE()) { if (PM_IS_ACTIVE()) {
printk(KERN_NOTICE "apm: overridden by ACPI.\n"); printk(KERN_NOTICE "apm: overridden by ACPI.\n");
apm_info.disabled = 1;
return -ENODEV; return -ENODEV;
} }
pm_active = 1; pm_active = 1;
......
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