patch-2.1.30 linux/include/asm-sparc64/smp_lock.h

Next file: linux/include/asm-sparc64/socket.h
Previous file: linux/include/asm-sparc64/processor.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.29/linux/include/asm-sparc64/smp_lock.h linux/include/asm-sparc64/smp_lock.h
@@ -10,7 +10,10 @@
 #include <asm/bitops.h>
 #include <asm/pgtable.h>
 
-#ifdef __SMP__
+#ifndef __SMP__
+#define lock_kernel()           do { } while(0)
+#define unlock_kernel()         do { } while(0)
+#else
 
 extern __inline__ __volatile__ unsigned char ldstub(volatile unsigned char *lock)
 {

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