lkml.org 
[lkml]   [1999]   [Aug]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] fix for APM compilationn ix86
Here is a patch that fix apm compilation on ix86 in 2.3.13-pre7

--
MandrakeSoft http://www.mandrakesoft.com/
somewhere between the playstation and the super cray
--Thierrydiff -ru old/arch/i386/kernel/apm.c linux/arch/i386/kernel/apm.c
--- old/arch/i386/kernel/apm.c Wed Aug 4 09:53:22 1999
+++ linux/arch/i386/kernel/apm.c Fri Aug 6 09:59:48 1999
@@ -284,6 +284,7 @@

extern int apm_register_callback(int (*)(apm_event_t));
extern void apm_unregister_callback(int (*)(apm_event_t));
+static int hlt_counter;

/*
* Local variables
@@ -548,6 +549,11 @@
*/
#define HARD_IDLE_TIMEOUT (HZ/3)

+/* This should wake up kapmd and ask it to slow the CPU */
+#define powermanagement_idle() do { } while (0)
+
+extern int hlt_counter;
+
/*
* This is the idle thing.
*/
@@ -1227,7 +1233,6 @@
unsigned short bx;
unsigned short cx;
unsigned short dx;
- unsigned short nbat;
unsigned short error;
unsigned short ac_line_status = 0xff;
unsigned short battery_status = 0xff;
@@ -1428,7 +1433,7 @@
* In short, if something bad happens, at least we have a choice
* of just killing the apm thread..
*/
-static int __init apm_init(void)
+static void __init apm_init(void)
{
static struct proc_dir_entry *ent;
\
 
 \ /
  Last update: 2005-03-22 13:53    [W:0.022 / U:0.128 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site