1 #ifndef __ASM_SH_SMPLOCK_H 2 #define __ASM_SH_SMPLOCK_H 3 4 /* 5 * This file is subject to the terms and conditions of the GNU General Public 6 * License. See the file "COPYING" in the main directory of this archive 7 * for more details. 8 */ 9 10 #include <linux/config.h> 11 12 #ifndef CONFIG_SMP 13 14 #define lock_kernel() do { } while(0) 15 #define unlock_kernel() do { } while(0) 16 #define release_kernel_lock(task, cpu, depth) ((depth) = 1) 17 #define reacquire_kernel_lock(task, cpu, depth) do { } while(0) 18 19 #else 20 #error "We do not support SMP on SH" 21 #endif /* CONFIG_SMP */ 22 23 #endif /* __ASM_SH_SMPLOCK_H */ 24