MIPS: Outline udelay and fix a few issues.
authorRalf Baechle <ralf@linux-mips.org>
Sat, 28 Feb 2009 09:44:28 +0000 (09:44 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 8 Jun 2009 15:57:51 +0000 (16:57 +0100)
commit5636919b5c909fee54a6ef5226475ecae012ad02
treec77fa89c56ee2d493fb82117ab5dbc5b28a8deeb
parent3a553147eaad5d4de90ab1f695aa13ddbea684ec
MIPS: Outline udelay and fix a few issues.

Outlining fixes the issue were on certain CPUs such as the R10000 family
the delay loop would need an extra cycle if it overlaps a cacheline
boundary.

The rewrite also fixes build errors with GCC 4.4 which was changed in
way incompatible with the kernel's inline assembly.

Relying on pure C for computation of the delay value removes the need for
explicit.  The price we pay is a slight slowdown of the computation - to
be fixed on another day.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/cpu-info.h
arch/mips/include/asm/delay.h
arch/mips/kernel/proc.c
arch/mips/lib/Makefile
arch/mips/lib/delay.c [new file with mode: 0644]