1 #ifndef __LINUX_SMPLOCK_H 2 #define __LINUX_SMPLOCK_H 3 4 #include <linux/config.h> 5 6 #ifndef CONFIG_SMP 7 8 #define lock_kernel() do { } while(0) 9 #define unlock_kernel() do { } while(0) 10 #define release_kernel_lock(task, cpu) do { } while(0) 11 #define reacquire_kernel_lock(task) do { } while(0) 12 #define kernel_locked() 1 13 14 #else 15 16 #include <asm/smplock.h> 17 18 #endif /* CONFIG_SMP */ 19 20 #endif 21