patch-2.4.2 linux/include/asm-cris/smplock.h

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

diff -u --recursive --new-file v2.4.1/linux/include/asm-cris/smplock.h linux/include/asm-cris/smplock.h
@@ -0,0 +1,25 @@
+#ifndef __ASM_CRIS_SMPLOCK_H
+#define __ASM_CRIS_SMPLOCK_H
+
+/*
+ * This file is subject to the terms and conditions of the GNU General Public
+ * License.  See the file "COPYING" in the main directory of this archive
+ * for more details.
+ */
+
+#include <linux/config.h>
+
+#ifndef CONFIG_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 CRIS"
+
+#endif
+
+#endif

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)