MIPS: Fix delay loops which may be removed by GCC.
authorRalf Baechle <ralf@linux-mips.org>
Fri, 27 Nov 2015 18:17:01 +0000 (19:17 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 27 Nov 2015 18:20:37 +0000 (19:20 +0100)
commitc861519fcf95b2d46cb4275903423b43ae150a40
tree7e17dcbb79a0a12dc06eae6d1bc3a5a3d8fa58ce
parent1ec218373b8ebda821aec00bb156a9c94fad9cd4
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>
arch/mips/pci/pci-rt2880.c
arch/mips/pmcs-msp71xx/msp_setup.c
arch/mips/sni/reset.c