[IA64] improve __cpu_die()
authorIsaku Yamahata <yamahata@valinux.co.jp>
Mon, 28 Jul 2008 08:29:09 +0000 (17:29 +0900)
committerIsaku Yamahata <yamahata@valinux.co.jp>
Mon, 28 Jul 2008 08:29:09 +0000 (17:29 +0900)
use udelay instead of nop loop.
This patch reduces __cpu_die() time much.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
xen/arch/ia64/linux-xen/smpboot.c

index cb3ee1629187f88ce3b040cd920a2b63dcb61144..0cc4de2cd5d8b693069e2e8e3cca8b1bf5ec30ea 100644 (file)
@@ -748,9 +748,7 @@ void __cpu_die(unsigned int cpu)
                        return;
                }
 #ifdef XEN
-               /* XXX: There must be a better way to sleep */
-               for (int j = 0; j < 1000000; j++)
-                       cpu_relax();
+               udelay(100 * 1000);
 #else
                msleep(100);
 #endif