* [PATCH] apm bootparam 2.4.18
@ 2002-03-04 10:22 Thomas Krennwallner
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Krennwallner @ 2002-03-04 10:22 UTC (permalink / raw)
To: linux-kernel; +Cc: marcelo
Hi!
Bootparam handling in apm.c is broken. apm=on and apm=off turns APM off, no
bootparam turns apm on.
so long
Thomas
--- linux-2.4.18/arch/i386/kernel/apm.c Mon Feb 25 20:37:53 2002
+++ linux/arch/i386/kernel/apm.c Fri Mar 1 10:36:34 2002
@@ -392,7 +392,7 @@
static int got_clock_diff;
#endif
static int debug;
-static int apm_disabled = -1;
+static int apm_disabled = 0;
#ifdef CONFIG_SMP
static int power_off;
#else
@@ -1868,7 +1868,7 @@
if (realmode_power_off)
apm_info.realmode_power_off = 1;
/* User can override, but default is to trust DMI */
- if (apm_disabled != -1)
+ if (apm_disabled)
apm_info.disabled = apm_disabled;
/*
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] apm bootparam 2.4.18
@ 2002-03-04 20:54 Thomas Hood
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Hood @ 2002-03-04 20:54 UTC (permalink / raw)
To: linux-kernel
Thomas Krennwallner wrote:
> Bootparam handling in apm.c is broken. apm=on and apm=off
> turns APM off, no bootparam turns apm on.
That's not true. The existing code looks correct to me.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-03-04 20:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-04 10:22 [PATCH] apm bootparam 2.4.18 Thomas Krennwallner
2002-03-04 20:54 Thomas Hood
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).