lkml.org 
[lkml]   [1997]   [Feb]   [7]   [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, Bob Lorenzini wrote:

> make[1]: Entering directory `/usr/src/linux/arch/i386/kernel'
> gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
> -fomit-frame-pointer -pipe -fno-strength-reduce -m486 -malign-loops=2
> -malign-jumps=2 -malign-functions=2 -DCPU=586 -c -o time.o time.c
> time.c: In function `do_gettimeofday':
> time.c:272: `lost_ticks' undeclared (first use this function)
> time.c:272: (Each undeclared identifier is reported only once
> time.c:272: for each function it appears in.)
> time.c:273: `USECS_PER_JIFFY' undeclared (first use this function)
> make[1]: *** [time.o] Error 1
> make[1]: Leaving directory `/usr/src/linux/arch/i386/kernel'
> make: *** [linuxsubdirs] Error 2

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

--- linux/arch/i386/kernel/.time.c.original Fri Feb 7 21:19:45 1997
+++ linux/arch/i386/kernel/time.c Fri Feb 7 21:19:54 1997
@@ -34,6 +34,9 @@

extern int setup_x86_irq(int, struct irqaction *);

+/* 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.. */
static struct {
@@ -42,9 +45,6 @@
} 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:2.048 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site