diff options
author | Radim Krčmář <rkrcmar@redhat.com> | 2016-03-03 00:56:45 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-03-04 11:30:01 +0300 |
commit | 71474e2f0f439b83b7b53ee6e9cf4f44c15b5806 (patch) | |
tree | 92305f6cbf6f6a935818ae102bab682fd38fd96e /arch/x86/kvm/i8254.h | |
parent | b39c90b6560c4458d46cb243abea0dcb7bc126d1 (diff) | |
download | linux-71474e2f0f439b83b7b53ee6e9cf4f44c15b5806.tar.xz |
KVM: i8254: remove notifiers from PIT discard policy
Discard policy doesn't rely on information from notifiers, so we don't
need to register notifiers unconditionally. We kept correct counts in
case userspace switched between policies during runtime, but that can be
avoided by reseting the state.
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/i8254.h')
-rw-r--r-- | arch/x86/kvm/i8254.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kvm/i8254.h b/arch/x86/kvm/i8254.h index 840fbb3cb626..1945635904a7 100644 --- a/arch/x86/kvm/i8254.h +++ b/arch/x86/kvm/i8254.h @@ -63,5 +63,6 @@ void kvm_free_pit(struct kvm *kvm); void kvm_pit_load_count(struct kvm_pit *pit, int channel, u32 val, int hpet_legacy_start); +void kvm_pit_set_reinject(struct kvm_pit *pit, bool reinject); #endif |