diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-03-27 23:54:12 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-03-27 23:54:12 +0000 |
commit | d3e71cb08747743fce908122bab08b479eb403a5 (patch) | |
tree | cbec6948fdbdee9af81cf3ecfb504070d2745d7b /include/asm-mips64/smplock.h | |
parent | fe7ff1706e323d0e5ed83972960a1ecc1ee538b3 (diff) |
Merge with Linux 2.3.99-pre3.
Diffstat (limited to 'include/asm-mips64/smplock.h')
-rw-r--r-- | include/asm-mips64/smplock.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/asm-mips64/smplock.h b/include/asm-mips64/smplock.h index ad3bfd6ad..f0b627e6a 100644 --- a/include/asm-mips64/smplock.h +++ b/include/asm-mips64/smplock.h @@ -3,8 +3,8 @@ * * Default SMP lock implementation */ -#ifndef __ASM_SMPLOCK_H -#define __ASM_SMPLOCK_H +#ifndef _ASM_SMPLOCK_H +#define _ASM_SMPLOCK_H #include <linux/sched.h> #include <linux/interrupt.h> @@ -12,6 +12,8 @@ extern spinlock_t kernel_flag; +#define kernel_locked() spin_is_locked(&kernel_flag) + /* * Release global kernel lock and global interrupt lock */ @@ -51,4 +53,4 @@ static __inline__ void unlock_kernel(void) spin_unlock(&kernel_flag); } -#endif /* __ASM_SMPLOCK_H */ +#endif /* _ASM_SMPLOCK_H */ |