summaryrefslogtreecommitdiffstats
path: root/include/asm-ppc/smplock.h
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-11-28 03:58:46 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-11-28 03:58:46 +0000
commitb63ad0882a16a5d28003e57f2b0b81dee3fb322b (patch)
tree0a343ce219e2b8b38a5d702d66032c57b83d9720 /include/asm-ppc/smplock.h
parenta9d7bff9a84dba79609a0002e5321b74c4d64c64 (diff)
Merge with 2.4.0-test11.
Diffstat (limited to 'include/asm-ppc/smplock.h')
-rw-r--r--include/asm-ppc/smplock.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-ppc/smplock.h b/include/asm-ppc/smplock.h
index 96565069c..5fdd5733b 100644
--- a/include/asm-ppc/smplock.h
+++ b/include/asm-ppc/smplock.h
@@ -3,6 +3,7 @@
*
* Default SMP lock implementation
*/
+#ifdef __KERNEL__
#include <linux/interrupt.h>
#include <linux/spinlock.h>
@@ -49,3 +50,4 @@ extern __inline__ void unlock_kernel(void)
if (--current->lock_depth < 0)
spin_unlock(&kernel_flag);
}
+#endif /* __KERNEL__ */