--- src/linux/arch/i386/kernel/dmi_scan.c Sat Dec 22 16:31:11 2001 +++ src/linux/arch/i386/kernel/dmi_scan.c.mod Sat Dec 22 17:06:22 2001 @@ -255,26 +255,29 @@ static __init int set_realmode_power_off(struct dmi_blacklist *d) { +#if defined (CONFIG_APM) if (apm_info.realmode_power_off == 0) { apm_info.realmode_power_off = 1; printk(KERN_INFO "%s bios detected. Using realmode poweroff only.\n", d->ident); } +#endif return 0; } - /* * Some laptops require interrupts to be enabled during APM calls */ static __init int set_apm_ints(struct dmi_blacklist *d) { +#if defined (CONFIG_APM) if (apm_info.allow_ints == 0) { apm_info.allow_ints = 1; printk(KERN_INFO "%s machine detected. Enabling interrupts during APM calls.\n", d->ident); } +#endif return 0; } @@ -284,15 +287,16 @@ static __init int apm_is_horked(struct dmi_blacklist *d) { +#if defined (CONFIG_APM) if (apm_info.disabled == 0) { apm_info.disabled = 1; printk(KERN_INFO "%s machine detected. Disabling APM.\n", d->ident); } +#endif return 0; } - /* * Check for clue free BIOS implementations who use * the following QA technique @@ -311,10 +315,12 @@ static __init int broken_apm_power(struct dmi_blacklist *d) { +#if defined (CONFIG_APM) apm_info.get_power_status_broken = 1; printk(KERN_WARNING "BIOS strings suggest APM bugs, disabling power status reporting.\n"); +#endif return 0; -} +} /* * Check for a Sony Vaio system @@ -341,8 +347,10 @@ static __init int swab_apm_power_in_minutes(struct dmi_blacklist *d) { +#if defined (CONFIG_APM) apm_info.get_power_status_swabinminutes = 1; printk(KERN_WARNING "BIOS strings suggest APM reports battery life in minutes and wrong byte order.\n"); +#endif return 0; }