workaround for timer glitch on some boards

SVN-Revision: 8483
This commit is contained in:
Mike Baker 2007-08-25 13:18:58 +00:00
parent c6e6780624
commit 7ab328b133

View file

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