ia64/xen-unstable

view xen/include/asm-x86/hardirq.h @ 8847:07a892f12609

More upgrades of Xen code to linux-2.6.16-rc2.

Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Tue Feb 14 18:25:10 2006 +0100 (2006-02-14)
parents 949970efef98
children 3838105ab03b
line source
1 #ifndef __ASM_HARDIRQ_H
2 #define __ASM_HARDIRQ_H
4 #include <xen/config.h>
5 #include <xen/cache.h>
7 typedef struct {
8 unsigned int __softirq_pending;
9 unsigned int __local_irq_count;
10 unsigned int __nmi_count;
11 unsigned long idle_timestamp;
12 } __cacheline_aligned irq_cpustat_t;
14 #include <xen/irq_cpustat.h> /* Standard mappings for irq_cpustat_t above */
16 #define in_irq() (local_irq_count(smp_processor_id()) != 0)
18 #define irq_enter() (local_irq_count(smp_processor_id())++)
19 #define irq_exit() (local_irq_count(smp_processor_id())--)
21 void ack_bad_irq(unsigned int irq);
23 extern void apic_intr_init(void);
24 extern void smp_intr_init(void);
26 #endif /* __ASM_HARDIRQ_H */