lkml.org 
[lkml]   [2005]   [Nov]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH 2.4] fix for clock running too fast

Ingo Molnar <mingo@elte.hu> mentioned:
>
> * Akira Tsukamoto <akira-t@s9.dion.ne.jp> wrote:
>
> > This one line patch adds upper bound testing inside timer_irq_works()
> > when evaluating whether irq timer works or not on boot up.
> >
> > It fix the machines having problem with clock running too fast.
> >
> > What this patch do is, if timer interrupts running too fast through
> > IO-APIC IRQ then false back to i8259A IRQ.
>
> thanks - looks good to me.
>
> Acked-by: Ingo Molnar <mingo@elte.hu>
>
> Ingo

This patch is against kernel 2.4.

Signed-off-by: Akira Tsukamoto <akira-t@s9.dion.ne.jp>

--- linux-2.4.32-atifix/arch/i386/kernel/io_apic.c.orig 2004-11-17 20:54:21.000000000 +0900
+++ linux-2.4.32-atifix/arch/i386/kernel/io_apic.c 2005-11-25 02:27:32.000000000 +0900
@@ -1194,7 +1194,7 @@ static int __init timer_irq_works(void)
* might have cached one ExtINT interrupt. Finally, at
* least one tick may be lost due to delays.
*/
- if (jiffies - t1 > 4)
+ if (jiffies - t1 > 4 && jiffies - t1 < 16)
return 1;

return 0;


> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/

--
Akira Tsukamoto <akira-t@s9.dion.ne.jp> <>


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-11-24 19:01    [from the cache]
©2003-2011 Jasper Spaans