patch-2.1.48 linux/include/asm-ppc/smp_lock.h
Next file: linux/include/asm-ppc/socket.h
Previous file: linux/include/asm-ppc/smp.h
Back to the patch index
Back to the overall index
- Lines: 17
- Date:
Thu Jul 31 13:09:18 1997
- Orig file:
v2.1.47/linux/include/asm-ppc/smp_lock.h
- Orig date:
Wed Dec 31 16:00:00 1969
diff -u --recursive --new-file v2.1.47/linux/include/asm-ppc/smp_lock.h linux/include/asm-ppc/smp_lock.h
@@ -0,0 +1,16 @@
+#ifndef __PPC_SMPLOCK_H
+#define __PPC_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 need to defined lock_kernel and unlock_kernel, etc.
+
+#endif /* __SMP__ */
+#endif /* __PPC_SMPLOCK_H */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov