diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-11-29 17:24:35 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-11-29 17:24:35 -0800 |
commit | 00fd6a7194d2f3be3ecc4fde0af02b39823afdcc (patch) | |
tree | 9c720cbb271a42014ca6c256da5741f4b04feff2 /arch/mips/pmcs-msp71xx/msp_setup.c | |
parent | d72aee78e9bb956265480a118bdba2fc99dbf4bf (diff) | |
parent | c861519fcf95b2d46cb4275903423b43ae150a40 (diff) |
Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus
Pull MIPS fix from Ralf Baechle:
"Just a fix for empty loops that may be removed by non-antique GCC"
* 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus:
MIPS: Fix delay loops which may be removed by GCC.
Diffstat (limited to 'arch/mips/pmcs-msp71xx/msp_setup.c')
-rw-r--r-- | arch/mips/pmcs-msp71xx/msp_setup.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/mips/pmcs-msp71xx/msp_setup.c b/arch/mips/pmcs-msp71xx/msp_setup.c index 4f925e06c414..78b2ef49dbc7 100644 --- a/arch/mips/pmcs-msp71xx/msp_setup.c +++ b/arch/mips/pmcs-msp71xx/msp_setup.c @@ -10,6 +10,8 @@ * option) any later version. */ +#include <linux/delay.h> + #include <asm/bootinfo.h> #include <asm/cacheflush.h> #include <asm/idle.h> @@ -77,7 +79,7 @@ void msp7120_reset(void) */ /* Wait a bit for the DDRC to settle */ - for (i = 0; i < 100000000; i++); + mdelay(125); #if defined(CONFIG_PMC_MSP7120_GW) /* |