ia64/xen-unstable

view xen/include/asm-x86/hardirq.h @ 19848:5839491bbf20

[IA64] replace MAX_VCPUS with d->max_vcpus where necessary.

don't use MAX_VCPUS, and use vcpu::max_vcpus.
The changeset of 2f9e1348aa98 introduced max_vcpus to allow more vcpus
per guest. This patch is ia64 counter part.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author Isaku Yamahata <yamahata@valinux.co.jp>
date Mon Jun 29 11:26:05 2009 +0900 (2009-06-29)
parents 3838105ab03b
children
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 long __softirq_pending;
9 unsigned int __local_irq_count;
10 unsigned int __nmi_count;
11 } __cacheline_aligned irq_cpustat_t;
13 #include <xen/irq_cpustat.h> /* Standard mappings for irq_cpustat_t above */
15 #define in_irq() (local_irq_count(smp_processor_id()) != 0)
17 #define irq_enter() (local_irq_count(smp_processor_id())++)
18 #define irq_exit() (local_irq_count(smp_processor_id())--)
20 void ack_bad_irq(unsigned int irq);
22 extern void apic_intr_init(void);
23 extern void smp_intr_init(void);
25 #endif /* __ASM_HARDIRQ_H */