diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2010-05-04 12:48:28 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2010-05-04 12:48:28 +0100 |
commit | 1adb34ea846d8034988e54fa7d117a08b4b719fb (patch) | |
tree | cb1d8c54a3b4f1755dbf470033043e025c15ad42 /xen/include/xen/irq_cpustat.h | |
parent | 3ede2e71352e2a73da42eac8929782c2b3dd9d6d (diff) | |
download | xen-1adb34ea846d8034988e54fa7d117a08b4b719fb.tar.gz xen-1adb34ea846d8034988e54fa7d117a08b4b719fb.tar.bz2 xen-1adb34ea846d8034988e54fa7d117a08b4b719fb.zip |
CPUIDLE: re-implement mwait wakeup process
It MWAITs on a completely new flag field, avoiding the IPI-avoidance
semantics of softirq_pending. It also does wakeup-waiting checks on
timer_deadline_start, that being the field that initiates wakeup via
the MONITORed memory region.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Signed-off-by: Wei Gang <gang.wei@intel.com>
Diffstat (limited to 'xen/include/xen/irq_cpustat.h')
-rw-r--r-- | xen/include/xen/irq_cpustat.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xen/include/xen/irq_cpustat.h b/xen/include/xen/irq_cpustat.h index 6465c8a0fe..94957996bb 100644 --- a/xen/include/xen/irq_cpustat.h +++ b/xen/include/xen/irq_cpustat.h @@ -26,5 +26,6 @@ extern irq_cpustat_t irq_stat[]; #define softirq_pending(cpu) __IRQ_STAT((cpu), __softirq_pending) #define local_irq_count(cpu) __IRQ_STAT((cpu), __local_irq_count) #define nmi_count(cpu) __IRQ_STAT((cpu), __nmi_count) +#define mwait_wakeup(cpu) __IRQ_STAT((cpu), __mwait_wakeup) #endif /* __irq_cpustat_h */ |