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

Subversion Repositories or1k

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

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

Line No. Rev Author Line
1 1275 phoenix
#ifndef _ASM_IA64_SOFTIRQ_H
2
#define _ASM_IA64_SOFTIRQ_H
3
 
4
/*
5
 * Copyright (C) 1998-2001 Hewlett-Packard Co
6
 *      David Mosberger-Tang <davidm@hpl.hp.com>
7
 */
8
#include <asm/hardirq.h>
9
 
10
#define __local_bh_enable()     do { barrier(); really_local_bh_count()--; } while (0)
11
 
12
#define local_bh_disable()      do { really_local_bh_count()++; barrier(); } while (0)
13
#define local_bh_enable()                                                               \
14
do {                                                                                    \
15
        __local_bh_enable();                                                            \
16
        if (__builtin_expect(local_softirq_pending(), 0) && really_local_bh_count() == 0) \
17
                do_softirq();                                                           \
18
} while (0)
19
 
20
 
21
#define in_softirq()            (really_local_bh_count() != 0)
22
 
23
#endif /* _ASM_IA64_SOFTIRQ_H */

powered by: WebSVN 2.1.0

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