|
|
|
|
|
|
|
|
|
|
xen-ppc-devel
[XenPPC] [xenppc-unstable] cpu_relax() needs to call barrier()
# HG changeset patch
# User Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
# Node ID a8e67a19c3255a6bbc0aaa5c9e1736f1ddd76f6c
# Parent cc45282daf3d242fdcf6e858c0b18b7f1086a318
cpu_relax() needs to call barrier()
Signed-off-by: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
---
xen/include/asm-powerpc/processor.h | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
diff -r cc45282daf3d -r a8e67a19c325 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-ppc-devel mailing list
Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ppc-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [XenPPC] [xenppc-unstable] cpu_relax() needs to call barrier(),
Xen patchbot-xenppc-unstable <=
|
|
|
|
|