lkml.org 
[lkml]   [1997]   [Feb]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: 2.1.26 and CONFIG_APM

On Mon, 10 Feb 1997, Joachim Schmitz wrote:

> Hi hackers
>
> linux-2.1.26/arch/i386/kernel/time.c doesn't compile, if CONFIG_APM is set.
> Possible Fix (seems to work here):

the fix is slightly broken, rather use the patch i've posted recently.
(repeating it here:)

--- /pdl/linux/linux-2.1.26_orig/arch/i386/kernel/time.c Sat Feb 8 11:59:46 1997
+++ linux/arch/i386/kernel/time.c Sun Feb 9 20:09:27 1997
@@ -33,6 +33,10 @@
#include <linux/config.h>

extern int setup_x86_irq(int, struct irqaction *);
+extern volatile unsigned long lost_ticks;
+
+/* change this if you have some constant time drift */
+#define USECS_PER_JIFFY (1000020/HZ)

#ifndef CONFIG_APM /* cycle counter may be unreliable */
/* Cycle counter value at the previous timer interrupt.. */
@@ -40,11 +44,6 @@
unsigned long low;
unsigned long high;
} init_timer_cc, last_timer_cc;
-
-extern volatile unsigned long lost_ticks;
-
-/* change this if you have some constant time drift */
-#define USECS_PER_JIFFY (1000020/HZ)

static unsigned long do_fast_gettimeoffset(void)
{

\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.273 / U:0.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site