APM doesn't _need_ the PM_LEGACY junk, so remove it's dependancy from
Kconfig, and ifdef the junk in the code. Whilst the ifdefs are ugly, when
the legacy stuff gets ripped out so will the ifdefs.
Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
config APM
tristate "APM (Advanced Power Management) BIOS support"
config APM
tristate "APM (Advanced Power Management) BIOS support"
- depends on PM && PM_LEGACY
---help---
APM is a BIOS specification for saving power using several different
techniques. This is mostly useful for battery powered laptops with
---help---
APM is a BIOS specification for saving power using several different
techniques. This is mostly useful for battery powered laptops with
apm_info.disabled = 1;
return -ENODEV;
}
apm_info.disabled = 1;
return -ENODEV;
}
/*
* Set up a segment that references the real mode segment 0x40
/*
* Set up a segment that references the real mode segment 0x40
exit_kapmd = 1;
while (kapmd_running)
schedule();
exit_kapmd = 1;
while (kapmd_running)
schedule();