lkml.org 
[lkml]   [2002]   [Mar]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] apm bootparam 2.4.18
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;

/*
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:24    [W:0.076 / U:18.444 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site