WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

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

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [IA64] improve __cpu_die()
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 11 Aug 2008 05:50:40 -0700
Delivery-date: Mon, 11 Aug 2008 05:52:00 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [IA64] improve __cpu_die(), Xen patchbot-unstable <=