The raw ARM asm delay loop prevents COMPILE_TEST builds on
non-ARM architectures. Guard it with CONFIG_ARM and provide a
cpu_relax() fallback for compilation on other architectures.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Niklas Cassel <cassel@kernel.org>
*/
static void ep93xx_pata_delay(unsigned long count)
{
+#ifdef CONFIG_ARM
__asm__ volatile (
"0:\n"
"mov r0, r0\n"
: "=r" (count)
: "0" (count)
);
+#else
+ while (count--)
+ cpu_relax();
+#endif
}
static unsigned long ep93xx_pata_wait_for_iordy(void __iomem *base,