diff options
author | Dave Jones <davej@redhat.com> | 2006-01-08 04:05:09 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-08 23:14:08 -0500 |
commit | 987d4613e52e4f655278265aabbcc69237018b1d (patch) | |
tree | 4190d1488573764e871c3299bac0624858ec3a19 /arch/i386/kernel/apm.c | |
parent | 9fe656e91fd95d0893cc4831b032e0be60791bd7 (diff) |
[PATCH] Make apm buildable without legacy pm
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>
Diffstat (limited to 'arch/i386/kernel/apm.c')
-rw-r--r-- | arch/i386/kernel/apm.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/i386/kernel/apm.c b/arch/i386/kernel/apm.c index 2d793d4aef1a..9d8827156e54 100644 --- a/arch/i386/kernel/apm.c +++ b/arch/i386/kernel/apm.c | |||
@@ -2291,7 +2291,9 @@ static int __init apm_init(void) | |||
2291 | apm_info.disabled = 1; | 2291 | apm_info.disabled = 1; |
2292 | return -ENODEV; | 2292 | return -ENODEV; |
2293 | } | 2293 | } |
2294 | #ifdef CONFIG_PM_LEGACY | ||
2294 | pm_active = 1; | 2295 | pm_active = 1; |
2296 | #endif | ||
2295 | 2297 | ||
2296 | /* | 2298 | /* |
2297 | * Set up a segment that references the real mode segment 0x40 | 2299 | * Set up a segment that references the real mode segment 0x40 |
@@ -2382,7 +2384,9 @@ static void __exit apm_exit(void) | |||
2382 | exit_kapmd = 1; | 2384 | exit_kapmd = 1; |
2383 | while (kapmd_running) | 2385 | while (kapmd_running) |
2384 | schedule(); | 2386 | schedule(); |
2387 | #ifdef CONFIG_PM_LEGACY | ||
2385 | pm_active = 0; | 2388 | pm_active = 0; |
2389 | #endif | ||
2386 | } | 2390 | } |
2387 | 2391 | ||
2388 | module_init(apm_init); | 2392 | module_init(apm_init); |