[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] [IA64] improve __cpu_die()



# HG changeset patch
# User Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
# Date 1217233749 -32400
# Node ID bfddf170cef9e5e0b36e1d0c78f0ce7463c7f256
# Parent  01a3bba6b96da8f351b15e266517a1192b2d422f
[IA64] improve __cpu_die()

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

Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
---
 xen/arch/ia64/linux-xen/smpboot.c |    4 +---
 1 files changed, 1 insertion(+), 3 deletions(-)

diff -r 01a3bba6b96d -r bfddf170cef9 xen/arch/ia64/linux-xen/smpboot.c
--- a/xen/arch/ia64/linux-xen/smpboot.c Mon Jul 28 17:29:09 2008 +0900
+++ b/xen/arch/ia64/linux-xen/smpboot.c Mon Jul 28 17:29:09 2008 +0900
@@ -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

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.