MIPS: Fix delay loops which may be removed by GCC.
GCC 4.1 and newer remove empty loops. This becomes a problem when delay loops get removed. Fixed by rewriting to user the proper Linux interface for such delays. Signed-off-by: Ralf Baechle <ralf@linux-mips.org> Reported-by: Rasmus Villemoes <linux@rasmusvillemoes.dk> Acked-by: John Crispin <blogic@openwrt.org>
This commit is contained in:
@@ -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)
|
||||
/*
|
||||
|
Reference in New Issue
Block a user