direct-io.hg

view xen/include/asm-x86/hardirq.h @ 2959:9496b19804ae

bitkeeper revision 1.1159.172.6 (4194fabamHr_DCPBrjJ6jGPZc1kq-A)

Untangle #includes slightly.
author cl349@freefall.cl.cam.ac.uk
date Fri Nov 12 18:02:34 2004 +0000 (2004-11-12)
parents ead91151a0e6
children a337870b8d18
line source
1 #ifndef __ASM_HARDIRQ_H
2 #define __ASM_HARDIRQ_H
4 #include <xen/config.h>
5 #include <xen/cache.h>
7 /* assembly code in softirq.h is sensitive to the offsets of these fields */
8 typedef struct {
9 unsigned int __softirq_pending;
10 unsigned int __local_irq_count;
11 unsigned int __nmi_count;
12 unsigned long idle_timestamp;
13 } ____cacheline_aligned irq_cpustat_t;
15 #include <xen/irq_cpustat.h> /* Standard mappings for irq_cpustat_t above */
17 #define in_irq() (local_irq_count(smp_processor_id()) != 0)
19 #define irq_enter(cpu, irq) (local_irq_count(cpu)++)
20 #define irq_exit(cpu, irq) (local_irq_count(cpu)--)
22 #endif /* __ASM_HARDIRQ_H */