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

[Xen-changelog] [xen-unstable] [XEN] Fix shadow-lock macro backslash alignments.



# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Node ID dcdf02fde4cbef96c1e6256b7ff8ab984614618c
# Parent  044c6617e2be24a8d0dfe73674e34a4d9dd55e0b
[XEN] Fix shadow-lock macro backslash alignments.
Signed-off-by: Xin Li <xin.b.li@xxxxxxxxx>
---
 xen/include/asm-x86/shadow.h |   34 +++++++++++++++++-----------------
 1 files changed, 17 insertions(+), 17 deletions(-)

diff -r 044c6617e2be -r dcdf02fde4cb xen/include/asm-x86/shadow.h
--- a/xen/include/asm-x86/shadow.h      Fri Nov 03 11:43:27 2006 +0000
+++ b/xen/include/asm-x86/shadow.h      Fri Nov 03 11:54:33 2006 +0000
@@ -23,7 +23,7 @@
 #ifndef _XEN_SHADOW_H
 #define _XEN_SHADOW_H
 
-#include <public/domctl.h> 
+#include <public/domctl.h>
 #include <xen/sched.h>
 #include <xen/perfc.h>
 #include <xen/domain_page.h>
@@ -103,36 +103,36 @@
 #error shadow.h currently requires CONFIG_SMP
 #endif
 
-#define shadow_lock_init(_d)                                   \
-    do {                                                        \
-        spin_lock_init(&(_d)->arch.shadow.lock);               \
-        (_d)->arch.shadow.locker = -1;                         \
-        (_d)->arch.shadow.locker_function = "nobody";          \
+#define shadow_lock_init(_d)                            \
+    do {                                                \
+        spin_lock_init(&(_d)->arch.shadow.lock);        \
+        (_d)->arch.shadow.locker = -1;                  \
+        (_d)->arch.shadow.locker_function = "nobody";   \
     } while (0)
 
-#define shadow_lock_is_acquired(_d)                            \
+#define shadow_lock_is_acquired(_d)                     \
     (current->processor == (_d)->arch.shadow.locker)
 
 #define shadow_lock(_d)                                                 \
-    do {                                                                 \
+    do {                                                                \
         if ( unlikely((_d)->arch.shadow.locker == current->processor) ) \
-        {                                                                \
+        {                                                               \
             printk("Error: shadow lock held by %s\n",                   \
                    (_d)->arch.shadow.locker_function);                  \
-            BUG();                                                       \
-        }                                                                \
+            BUG();                                                      \
+        }                                                               \
         spin_lock(&(_d)->arch.shadow.lock);                             \
         ASSERT((_d)->arch.shadow.locker == -1);                         \
         (_d)->arch.shadow.locker = current->processor;                  \
         (_d)->arch.shadow.locker_function = __func__;                   \
     } while (0)
 
-#define shadow_unlock(_d)                                              \
-    do {                                                                \
-        ASSERT((_d)->arch.shadow.locker == current->processor);        \
-        (_d)->arch.shadow.locker = -1;                                 \
-        (_d)->arch.shadow.locker_function = "nobody";                  \
-        spin_unlock(&(_d)->arch.shadow.lock);                          \
+#define shadow_unlock(_d)                                       \
+    do {                                                        \
+        ASSERT((_d)->arch.shadow.locker == current->processor); \
+        (_d)->arch.shadow.locker = -1;                          \
+        (_d)->arch.shadow.locker_function = "nobody";           \
+        spin_unlock(&(_d)->arch.shadow.lock);                   \
     } while (0)
 
 /* 

_______________________________________________
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®.