patch-2.1.32 linux/include/asm-i386/system.h

Next file: linux/include/linux/fs.h
Previous file: linux/include/asm-i386/hardirq.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.31/linux/include/asm-i386/system.h linux/include/asm-i386/system.h
@@ -187,6 +187,9 @@
 struct __xchg_dummy { unsigned long a[100]; };
 #define __xg(x) ((struct __xchg_dummy *)(x))
 
+/*
+ * Note: no "lock" prefix even on SMP: xchg always implies lock anyway
+ */
 static inline unsigned long __xchg(unsigned long x, void * ptr, int size)
 {
 	switch (size) {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov