From 392e8802486cb573b916e746010e141a75f507e6 Mon Sep 17 00:00:00 2001 From: Kevin Date: Sat, 15 Nov 2014 09:58:27 +0800 Subject: init android origin source code --- ANDROID_3.4.5/arch/x86/kvm/kvm_timer.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 ANDROID_3.4.5/arch/x86/kvm/kvm_timer.h (limited to 'ANDROID_3.4.5/arch/x86/kvm/kvm_timer.h') diff --git a/ANDROID_3.4.5/arch/x86/kvm/kvm_timer.h b/ANDROID_3.4.5/arch/x86/kvm/kvm_timer.h new file mode 100644 index 00000000..497dbaa3 --- /dev/null +++ b/ANDROID_3.4.5/arch/x86/kvm/kvm_timer.h @@ -0,0 +1,18 @@ + +struct kvm_timer { + struct hrtimer timer; + s64 period; /* unit: ns */ + u32 timer_mode_mask; + u64 tscdeadline; + atomic_t pending; /* accumulated triggered timers */ + bool reinject; + struct kvm_timer_ops *t_ops; + struct kvm *kvm; + struct kvm_vcpu *vcpu; +}; + +struct kvm_timer_ops { + bool (*is_periodic)(struct kvm_timer *); +}; + +enum hrtimer_restart kvm_timer_fn(struct hrtimer *data); -- cgit