mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
Fix non-SMP build, broken by the previous changeset.
Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
1 parent
9aed763981
commit
8eb4861753
2 files changed
+10
No files matched your search
@@ -562,8 +562,13 @@ do { \
|
||||
#define local_irq_enable() __sti()
|
||||
|
||||
/* Don't use smp_processor_id: this is called in debug versions of that fn. */
|
||||
#ifdef CONFIG_SMP
|
||||
#define irqs_disabled() \
|
||||
HYPERVISOR_shared_info->vcpu_data[__smp_processor_id()].evtchn_upcall_mask
|
||||
#else
|
||||
#define irqs_disabled() \
|
||||
HYPERVISOR_shared_info->vcpu_data[0].evtchn_upcall_mask
|
||||
#endif
|
||||
|
||||
/*
|
||||
* disable hlt during certain critical i/o operations
|
||||
|
||||
@@ -388,8 +388,13 @@ void cpu_idle_wait(void);
|
||||
#define local_irq_enable() __sti()
|
||||
|
||||
/* Don't use smp_processor_id: this is called in debug versions of that fn. */
|
||||
#ifdef CONFIG_SMP
|
||||
#define irqs_disabled() \
|
||||
HYPERVISOR_shared_info->vcpu_data[__smp_processor_id()].evtchn_upcall_mask
|
||||
#else
|
||||
#define irqs_disabled() \
|
||||
HYPERVISOR_shared_info->vcpu_data[0].evtchn_upcall_mask
|
||||
#endif
|
||||
|
||||
/*
|
||||
* disable hlt during certain critical i/o operations
|
||||
|
||||