ia64/xen-unstable

changeset 18136:bfddf170cef9

[IA64] improve __cpu_die()

use udelay instead of nop loop.
This patch reduces __cpu_die() time much.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author Isaku Yamahata <yamahata@valinux.co.jp>
date Mon Jul 28 17:29:09 2008 +0900 (2008-07-28)
parents 01a3bba6b96d
children c587457f6916
files xen/arch/ia64/linux-xen/smpboot.c
line diff
     1.1 --- a/xen/arch/ia64/linux-xen/smpboot.c	Mon Jul 28 17:29:09 2008 +0900
     1.2 +++ b/xen/arch/ia64/linux-xen/smpboot.c	Mon Jul 28 17:29:09 2008 +0900
     1.3 @@ -748,9 +748,7 @@ void __cpu_die(unsigned int cpu)
     1.4  			return;
     1.5  		}
     1.6  #ifdef XEN
     1.7 -		/* XXX: There must be a better way to sleep */
     1.8 -		for (int j = 0; j < 1000000; j++)
     1.9 -			cpu_relax();
    1.10 +		udelay(100 * 1000);
    1.11  #else
    1.12  		msleep(100);
    1.13  #endif