summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorYoshinori Sato <ysato@users.sourceforge.jp>2003-10-25 17:23:40 -0800
committerLinus Torvalds <torvalds@home.osdl.org>2003-10-25 17:23:40 -0800
commitd33648efb3b41924dd0dd750650de9923bb5724e (patch)
tree9a056a4568891b7ddcdcacd3742650549a5e85b6 /include
parent7c382efaffd7974039c1e0026f6af02c0bca2fe2 (diff)
[PATCH] fix h8/300 support
- add 'sched_clock' - delete smplock.h
Diffstat (limited to 'include')
-rw-r--r--include/asm-h8300/smplock.h51
1 files changed, 0 insertions, 51 deletions
diff --git a/include/asm-h8300/smplock.h b/include/asm-h8300/smplock.h
deleted file mode 100644
index 96565069c988..000000000000
--- a/include/asm-h8300/smplock.h
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * <asm/smplock.h>
- *
- * Default SMP lock implementation
- */
-#include <linux/interrupt.h>
-#include <linux/spinlock.h>
-
-extern spinlock_t kernel_flag;
-
-#define kernel_locked() spin_is_locked(&kernel_flag)
-
-/*
- * Release global kernel lock and global interrupt lock
- */
-#define release_kernel_lock(task, cpu) \
-do { \
- if (task->lock_depth >= 0) \
- spin_unlock(&kernel_flag); \
- release_irqlock(cpu); \
- __sti(); \
-} while (0)
-
-/*
- * Re-acquire the kernel lock
- */
-#define reacquire_kernel_lock(task) \
-do { \
- if (task->lock_depth >= 0) \
- spin_lock(&kernel_flag); \
-} while (0)
-
-
-/*
- * Getting the big kernel lock.
- *
- * This cannot happen asynchronously,
- * so we only need to worry about other
- * CPU's.
- */
-extern __inline__ void lock_kernel(void)
-{
- if (!++current->lock_depth)
- spin_lock(&kernel_flag);
-}
-
-extern __inline__ void unlock_kernel(void)
-{
- if (--current->lock_depth < 0)
- spin_unlock(&kernel_flag);
-}