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] [POWERPC][XEN] cpu_relax() needs to call

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [POWERPC][XEN] cpu_relax() needs to call barrier()
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 13 Dec 2006 17:34:53 +0000
Delivery-date: Wed, 13 Dec 2006 09:39:14 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/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 Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
# Node ID 768bf8f273fb67ceb4351472b91c2bd7c82cbc62
# Parent  b4594f072a893c0f3d3d20a4315c847b74bbac25
[POWERPC][XEN] cpu_relax() needs to call barrier()

Signed-off-by: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
Signed-off-by: Hollis Blanchard <hollisb@xxxxxxxxxx>
---
 xen/include/asm-powerpc/processor.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

diff -r b4594f072a89 -r 768bf8f273fb xen/include/asm-powerpc/processor.h
--- a/xen/include/asm-powerpc/processor.h       Mon Nov 27 17:17:07 2006 -0500
+++ b/xen/include/asm-powerpc/processor.h       Tue Nov 28 10:33:53 2006 -0500
@@ -152,7 +152,8 @@ static inline void nop(void) {
 static inline void nop(void) {
     __asm__ __volatile__ ("nop");
 }
-#define cpu_relax() nop()
+/* will need to address thread priorities when we go SMT */
+#define cpu_relax() barrier()
 
 static inline unsigned int mfpir(void)
 {

_______________________________________________
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] [POWERPC][XEN] cpu_relax() needs to call barrier(), Xen patchbot-unstable <=