aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/i8254.h
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2012-07-26 11:01:53 -0400
committerMarcelo Tosatti <mtosatti@redhat.com>2012-07-31 23:21:07 -0400
commit26ef19242f6e4d747a61b5fd8da72343838864e4 (patch)
treef2eedd1c60bbd34f72c6a1546958cb8bec0c573d /arch/x86/kvm/i8254.h
parent9d9d2239bdecd525ce3eb6cbfe4abb925c98208c (diff)
KVM: fold kvm_pit_timer into kvm_kpit_state
One structure nests inside the other, providing no value at all. Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch/x86/kvm/i8254.h')
-rw-r--r--arch/x86/kvm/i8254.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/arch/x86/kvm/i8254.h b/arch/x86/kvm/i8254.h
index c9bbcb889c40..dd1b16b611b0 100644
--- a/arch/x86/kvm/i8254.h
+++ b/arch/x86/kvm/i8254.h
@@ -21,19 +21,15 @@ struct kvm_kpit_channel_state {
21 ktime_t count_load_time; 21 ktime_t count_load_time;
22}; 22};
23 23
24struct kvm_pit_timer {
25 struct hrtimer timer;
26 s64 period; /* unit: ns */
27 atomic_t pending; /* accumulated triggered timers */
28 bool reinject;
29 struct kvm *kvm;
30};
31
32struct kvm_kpit_state { 24struct kvm_kpit_state {
33 struct kvm_kpit_channel_state channels[3]; 25 struct kvm_kpit_channel_state channels[3];
34 u32 flags; 26 u32 flags;
35 struct kvm_pit_timer pit_timer;
36 bool is_periodic; 27 bool is_periodic;
28 s64 period; /* unit: ns */
29 struct hrtimer timer;
30 atomic_t pending; /* accumulated triggered timers */
31 bool reinject;
32 struct kvm *kvm;
37 u32 speaker_data_on; 33 u32 speaker_data_on;
38 struct mutex lock; 34 struct mutex lock;
39 struct kvm_pit *pit; 35 struct kvm_pit *pit;