patch-2.4.20 linux-2.4.20/include/asm-i386/spinlock.h
Next file: linux-2.4.20/include/asm-i386/system.h
Previous file: linux-2.4.20/include/asm-i386/socket.h
Back to the patch index
Back to the overall index
-  Lines: 9
-  Date:
Thu Nov 28 15:53:15 2002
-  Orig file: 
linux-2.4.19/include/asm-i386/spinlock.h
-  Orig date: 
Fri Aug  2 17:39:45 2002
diff -urN linux-2.4.19/include/asm-i386/spinlock.h linux-2.4.20/include/asm-i386/spinlock.h
@@ -49,7 +49,7 @@
  * We make no fairness assumptions. They have a cost.
  */
 
-#define spin_is_locked(x)	(*(volatile char *)(&(x)->lock) <= 0)
+#define spin_is_locked(x)	(*(volatile signed char *)(&(x)->lock) <= 0)
 #define spin_unlock_wait(x)	do { barrier(); } while(spin_is_locked(x))
 
 #define spin_lock_string \
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)