projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
workaround for timer glitch on some boards
[openwrt.git]
/
target
/
linux
/
brcm-2.4
/
files
/
arch
/
mips
/
bcm947xx
/
time.c
diff --git
a/target/linux/brcm-2.4/files/arch/mips/bcm947xx/time.c
b/target/linux/brcm-2.4/files/arch/mips/bcm947xx/time.c
index
2cf91f2
..
9c502be
100644
(file)
--- a/
target/linux/brcm-2.4/files/arch/mips/bcm947xx/time.c
+++ b/
target/linux/brcm-2.4/files/arch/mips/bcm947xx/time.c
@@
-99,6
+99,17
@@
static struct irqaction bcm947xx_timer_irqaction = {
void __init
bcm947xx_timer_setup(struct irqaction *irq)
{
void __init
bcm947xx_timer_setup(struct irqaction *irq)
{
+ int x;
+
/* Enable the timer interrupt */
setup_irq(7, &bcm947xx_timer_irqaction);
/* 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 */;
+ }
}
}
This page took
0.01853 seconds
and
4
git commands to generate.