Messages in this thread Patch in this message |  | | Date | Sat, 8 Feb 1997 11:51:05 +0100 (MET) | From | Ingo Molnar <> | Subject | Re: 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) {
|  |