diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2009-07-28 16:40:34 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2009-07-28 16:40:34 +0100 |
commit | aee7151ee76070f77b5ae30fdc6310e4f86223ec (patch) | |
tree | 297d7b0a35ccfebd465ed0949faf6bd9fca25bd3 /xen/arch/x86/hvm/vpt.c | |
parent | 59efc1880b0cc36fce0411ad230edf1193dc54ef (diff) | |
download | xen-aee7151ee76070f77b5ae30fdc6310e4f86223ec.tar.gz xen-aee7151ee76070f77b5ae30fdc6310e4f86223ec.tar.bz2 xen-aee7151ee76070f77b5ae30fdc6310e4f86223ec.zip |
x86,hvm: clean up vpt's period_cycles field
In struct periodic_time, pt->period_cycles is not cpu cycles since c/s
17716 and its value is always the same as pt->period.
Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
Diffstat (limited to 'xen/arch/x86/hvm/vpt.c')
-rw-r--r-- | xen/arch/x86/hvm/vpt.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/xen/arch/x86/hvm/vpt.c b/xen/arch/x86/hvm/vpt.c index a949d918ba..c4e47e25cb 100644 --- a/xen/arch/x86/hvm/vpt.c +++ b/xen/arch/x86/hvm/vpt.c @@ -230,9 +230,9 @@ void pt_update_irq(struct vcpu *v) list_for_each_entry ( pt, head, list ) { if ( !pt_irq_masked(pt) && pt->pending_intr_nr && - ((pt->last_plt_gtime + pt->period_cycles) < max_lag) ) + ((pt->last_plt_gtime + pt->period) < max_lag) ) { - max_lag = pt->last_plt_gtime + pt->period_cycles; + max_lag = pt->last_plt_gtime + pt->period; earliest_pt = pt; } } @@ -309,7 +309,7 @@ void pt_intr_post(struct vcpu *v, struct hvm_intack intack) } else { - pt->last_plt_gtime += pt->period_cycles; + pt->last_plt_gtime += pt->period; pt->pending_intr_nr--; } } @@ -385,7 +385,6 @@ void create_periodic_time( pt->vcpu = v; pt->last_plt_gtime = hvm_get_guest_time(pt->vcpu); pt->irq = irq; - pt->period_cycles = (u64)period; pt->one_shot = !period; pt->scheduled = NOW() + delta; |