diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2009-09-01 11:36:51 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2009-09-01 11:36:51 +0100 |
commit | 029ff8b67a3257b04fd61202bf92a6277e54fa84 (patch) | |
tree | 3664310385ac339dc98df91dacb594a3d6972599 /xen/arch/x86/hvm/vpt.c | |
parent | 049607ff3386ed38060862733cb63a6799571a28 (diff) | |
download | xen-029ff8b67a3257b04fd61202bf92a6277e54fa84.tar.gz xen-029ff8b67a3257b04fd61202bf92a6277e54fa84.tar.bz2 xen-029ff8b67a3257b04fd61202bf92a6277e54fa84.zip |
x86 hvm: remove pt_reset()
Virtual platform timers are not sync'ed with guest's TSC any more
since c/s 17716. Thus pt_reset is now useless.
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 | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/xen/arch/x86/hvm/vpt.c b/xen/arch/x86/hvm/vpt.c index c4e47e25cb..eb24f5d398 100644 --- a/xen/arch/x86/hvm/vpt.c +++ b/xen/arch/x86/hvm/vpt.c @@ -327,24 +327,6 @@ void pt_intr_post(struct vcpu *v, struct hvm_intack intack) cb(v, cb_priv); } -void pt_reset(struct vcpu *v) -{ - struct list_head *head = &v->arch.hvm_vcpu.tm_list; - struct periodic_time *pt; - - spin_lock(&v->arch.hvm_vcpu.tm_lock); - - list_for_each_entry ( pt, head, list ) - { - pt->pending_intr_nr = 0; - pt->last_plt_gtime = hvm_get_guest_time(pt->vcpu); - pt->scheduled = NOW() + pt->period; - set_timer(&pt->timer, pt->scheduled); - } - - spin_unlock(&v->arch.hvm_vcpu.tm_lock); -} - void pt_migrate(struct vcpu *v) { struct list_head *head = &v->arch.hvm_vcpu.tm_list; |