patch-2.4.0-test3 linux/arch/i386/kernel/apm.c

Next file: linux/arch/i386/kernel/entry.S
Previous file: linux/arch/i386/kernel/apic.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test2/linux/arch/i386/kernel/apm.c linux/arch/i386/kernel/apm.c
@@ -660,6 +660,7 @@
 #endif
 }
 
+#ifdef CONFIG_APM_DO_ENABLE
 static int apm_enable_power_management(int enable)
 {
 	u32	eax;
@@ -675,6 +676,7 @@
 		apm_bios_info.flags |= APM_BIOS_DISABLED;
 	return APM_SUCCESS;
 }
+#endif
 
 static int apm_get_power_status(u_short *status, u_short *bat, u_short *life)
 {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)