Skip to content

Commit

Permalink
x86: disable apm on the olpc
Browse files Browse the repository at this point in the history
The OLPC doesn't support APM but also doesn't have DMI, so we can't detect
and disable it based on DMI data.  So, just disable based on machine_is_olpc()

Signed-off-by: Jeremy Katz <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
  • Loading branch information
katzj authored and Ingo Molnar committed Sep 24, 2008
1 parent fb478da commit 77a9a76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/x86/kernel/apm_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@
#include <asm/uaccess.h>
#include <asm/desc.h>
#include <asm/i8253.h>
#include <asm/olpc.h>
#include <asm/paravirt.h>
#include <asm/reboot.h>

Expand Down Expand Up @@ -2217,7 +2218,7 @@ static int __init apm_init(void)

dmi_check_system(apm_dmi_table);

if (apm_info.bios.version == 0 || paravirt_enabled()) {
if (apm_info.bios.version == 0 || paravirt_enabled() || machine_is_olpc()) {
printk(KERN_INFO "apm: BIOS not found.\n");
return -ENODEV;
}
Expand Down

0 comments on commit 77a9a76

Please sign in to comment.