lkml.org 
[lkml]   [1997]   [Feb]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: 2.1.26 time.c prob

On Fri, 7 Feb 1997, Ingo Molnar wrote:

> you have APM on, right? This patch fixes it:

sigh ... the patch was wrong ... sorry for the confusion. This one
compiles:

[patch against vanilla 2.1.26]

--- linux/arch/i386/kernel/.time.c.original Fri Feb 7 21:19:45 1997
+++ linux/arch/i386/kernel/time.c Sat Feb 8 11:49:06 1997
@@ -32,7 +32,13 @@
#include <linux/timex.h>
#include <linux/config.h>

+#define CONFIG_APM
+
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 +46,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.047 / U:0.660 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site