From: Isaku Yamahata Date: Mon, 28 Jul 2008 08:29:09 +0000 (+0900) Subject: [IA64] improve __cpu_die() X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14169 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=10a0215631ac0467bef770cc20f3aaf7e4e37c4c;p=xen.git [IA64] improve __cpu_die() use udelay instead of nop loop. This patch reduces __cpu_die() time much. Signed-off-by: Isaku Yamahata --- diff --git a/xen/arch/ia64/linux-xen/smpboot.c b/xen/arch/ia64/linux-xen/smpboot.c index cb3ee16291..0cc4de2cd5 100644 --- a/xen/arch/ia64/linux-xen/smpboot.c +++ b/xen/arch/ia64/linux-xen/smpboot.c @@ -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