summaryrefslogtreecommitdiffstats
path: root/arch/i386/kernel/apm.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/i386/kernel/apm.c')
-rw-r--r--arch/i386/kernel/apm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/i386/kernel/apm.c b/arch/i386/kernel/apm.c
index c78a8f512..6a4eedf72 100644
--- a/arch/i386/kernel/apm.c
+++ b/arch/i386/kernel/apm.c
@@ -660,6 +660,7 @@ static void apm_power_off(void)
#endif
}
+#ifdef CONFIG_APM_DO_ENABLE
static int apm_enable_power_management(int enable)
{
u32 eax;
@@ -675,6 +676,7 @@ static int apm_enable_power_management(int enable)
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)
{