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

Subversion Repositories or1k_soc_on_altera_embedded_dev_kit

[/] [or1k_soc_on_altera_embedded_dev_kit/] [trunk/] [linux-2.6/] [linux-2.6.24/] [include/] [asm-or32/] [smplock.h] - Blame information for rev 7

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 7 xianfeng
#ifndef _OR32_SMPLOCK_H
2
#define _OR32_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
 
21
#error "We do not support SMP on or32"
22
 
23
#endif
24
 
25
#endif

powered by: WebSVN 2.1.0

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