debuggers.hg

view xen/include/xen/irq_cpustat.h @ 3136:f1c44a4d4998

bitkeeper revision 1.1159.1.446 (41a48ee42Omqs3zoJHTZPhLlPx5LUw)

Merge arcadians.cl.cam.ac.uk:/auto/groups/xeno/BK/xen-unstable.bk
into arcadians.cl.cam.ac.uk:/auto/groups/xeno/users/cl349/BK/xen.bk-smp
author cl349@arcadians.cl.cam.ac.uk
date Wed Nov 24 13:38:44 2004 +0000 (2004-11-24)
parents ead91151a0e6 2754a2ed61c3
children 0a4b76b6b5a0
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 */