patch-2.3.16 linux/include/asm-sh/smp_lock.h
Next file: linux/include/asm-sh/socket.h
Previous file: linux/include/asm-sh/smp.h
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Mon Aug 30 18:12:59 1999
- Orig file:
v2.3.15/linux/include/asm-sh/smp_lock.h
- Orig date:
Wed Dec 31 16:00:00 1969
diff -u --recursive --new-file v2.3.15/linux/include/asm-sh/smp_lock.h linux/include/asm-sh/smp_lock.h
@@ -0,0 +1,17 @@
+#ifndef __ASM_SH_SMPLOCK_H
+#define __ASM_SH_SMPLOCK_H
+
+#ifndef __SMP__
+
+#define lock_kernel() do { } while(0)
+#define unlock_kernel() do { } while(0)
+#define release_kernel_lock(task, cpu, depth) ((depth) = 1)
+#define reacquire_kernel_lock(task, cpu, depth) do { } while(0)
+
+#else
+
+#error "We do not support SMP on SH yet"
+
+#endif /* __SMP__ */
+
+#endif /* __ASM_SH_SMPLOCK_H */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)