]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc4bd05f652e9d4062a968123daba44eea619a9b1
tree7e17dcbb79a0a12dc06eae6d1bc3a5a3d8fa58ce
parentdb40e31ebbf3ef7dc8769277dd7bd9cc45daf866
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