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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [include/] [asm-or32/] [softirq.h] - Blame information for rev 1774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1276 phoenix
#ifdef __KERNEL__
2
#ifndef _OR32_SOFTIRQ_H
3
#define _OR32_SOFTIRQ_H
4
 
5
#include <asm/atomic.h>
6
#include <asm/hardirq.h>
7
 
8
#define local_bh_disable()                      \
9
do {                                            \
10
        local_bh_count(smp_processor_id())++;   \
11
        barrier();                              \
12
} while (0)
13
 
14
#define __local_bh_enable()                     \
15
do {                                            \
16
        barrier();                              \
17
        local_bh_count(smp_processor_id())--;   \
18
} while (0)
19
 
20
#define local_bh_enable()                               \
21
do {                                                    \
22
        if (!--local_bh_count(smp_processor_id())       \
23
            && softirq_pending(smp_processor_id())) {   \
24
                do_softirq();                           \
25
        }                                               \
26
} while (0)
27
 
28
#define in_softirq() (local_bh_count(smp_processor_id()) != 0)
29
 
30
#endif  /* _OR32_SOFTIRQ_H */
31
#endif /* __KERNEL__ */

powered by: WebSVN 2.1.0

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