mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-24 13:13:57 +08:00
f8e38dde33
This patch removes a #define for irq_enter that is superfluous due to a similar one in include/linux/hardirq.h. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
40 lines
1.1 KiB
C
40 lines
1.1 KiB
C
#ifndef __ASM_HARDIRQ_H
|
|
#define __ASM_HARDIRQ_H
|
|
|
|
#include <linux/config.h>
|
|
#include <linux/cache.h>
|
|
#include <linux/threads.h>
|
|
|
|
typedef struct {
|
|
unsigned int __softirq_pending;
|
|
} ____cacheline_aligned irq_cpustat_t;
|
|
|
|
#include <linux/irq_cpustat.h> /* Standard mappings for irq_cpustat_t above */
|
|
|
|
#define HARDIRQ_BITS 8
|
|
|
|
/*
|
|
* The hardirq mask has to be large enough to have space
|
|
* for potentially all IRQ sources in the system nesting
|
|
* on a single CPU:
|
|
*/
|
|
#if (1 << HARDIRQ_BITS) < NR_IRQS
|
|
# error HARDIRQ_BITS is too low!
|
|
#endif
|
|
|
|
#ifndef CONFIG_SMP
|
|
|
|
extern asmlinkage void __do_softirq(void);
|
|
|
|
#define irq_exit() \
|
|
do { \
|
|
preempt_count() -= IRQ_EXIT_OFFSET; \
|
|
if (!in_interrupt() && local_softirq_pending()) \
|
|
__do_softirq(); \
|
|
preempt_enable_no_resched(); \
|
|
} while (0)
|
|
#endif
|
|
|
|
|
|
#endif /* __ASM_HARDIRQ_H */
|