Fix non-SMP build, broken by the previous changeset.

Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
kaf24@firebug.cl.cam.ac.uk committed 2005-08-31 14:53:43 +00:00
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
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.