debuggers.hg

view xen/include/xen/irq_cpustat.h @ 3129:e0351a3744a5

bitkeeper revision 1.1159.187.4 (41a471c8NjyQJy-vepqpb8H7LdzHzA)

Allow preemption of long-running hypercalls for softirq processing.
author kaf24@scramble.cl.cam.ac.uk
date Wed Nov 24 11:34:32 2004 +0000 (2004-11-24)
parents ead91151a0e6
children 2754a2ed61c3
line source
1 #ifndef __irq_cpustat_h
2 #define __irq_cpustat_h
4 /*
5 * Contains default mappings for irq_cpustat_t, used by almost every
6 * architecture. Some arch (like s390) have per cpu hardware pages and
7 * they define their own mappings for irq_stat.
8 *
9 * Keith Owens <kaos@ocs.com.au> July 2000.
10 */
12 #include <xen/config.h>
13 #include <asm/hardirq.h>
15 /*
16 * Simple wrappers reducing source bloat. Define all irq_stat fields
17 * here, even ones that are arch dependent. That way we get common
18 * definitions instead of differing sets for each arch.
19 */
21 extern irq_cpustat_t irq_stat[];
23 #ifdef CONFIG_SMP
24 #define __IRQ_STAT(cpu, member) (irq_stat[cpu].member)
25 #else
26 #define __IRQ_STAT(cpu, member) ((void)(cpu), irq_stat[0].member)
27 #endif
29 /* arch independent irq_stat fields */
30 #define softirq_pending(cpu) __IRQ_STAT((cpu), __softirq_pending)
31 #define local_irq_count(cpu) __IRQ_STAT((cpu), __local_irq_count)
32 #define nmi_count(cpu) __IRQ_STAT((cpu), __nmi_count)
34 #endif /* __irq_cpustat_h */