workaround for timer glitch on some boards
authormbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 25 Aug 2007 13:18:58 +0000 (13:18 +0000)
committermbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 25 Aug 2007 13:18:58 +0000 (13:18 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8483 3c298f89-4303-0410-b956-a3cf2f4a3e73

target/linux/brcm-2.4/files/arch/mips/bcm947xx/time.c

index 2cf91f202e4dc61eaa4849c21b7ac8c3dca60a3c..9c502be5802bf96091a7bf6d37fa23b9c1171d12 100644 (file)
@@ -99,6 +99,17 @@ static struct irqaction bcm947xx_timer_irqaction = {
 void __init
 bcm947xx_timer_setup(struct irqaction *irq)
 {
+       int x;
+
        /* Enable the timer interrupt */
        setup_irq(7, &bcm947xx_timer_irqaction);
+
+       sti();
+
+       for (x=0; x<5; x++) {
+               unsigned long ticks; 
+               ticks = jiffies;
+               while (ticks == jiffies) 
+                       /* do nothing */;
+       }
 }