Messages in this thread Patch in this message |  | | Date | Fri, 7 Feb 1997 21:20:34 +0100 (MET) | From | Ingo Molnar <> | Subject | Re: 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) {
|  |