OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [tags/] [LINUX_2_4_26_OR32/] [linux/] [linux-2.4/] [include/] [linux/] [smp_lock.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1275 phoenix
#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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.