mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
workaround for timer glitch on some boards
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8483 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -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 */;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user