KVM: i8254: remove notifiers from PIT discard policy
authorRadim Krčmář <rkrcmar@redhat.com>
Wed, 2 Mar 2016 21:56:45 +0000 (22:56 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 4 Mar 2016 08:30:01 +0000 (09:30 +0100)
commit71474e2f0f439b83b7b53ee6e9cf4f44c15b5806
tree92305f6cbf6f6a935818ae102bab682fd38fd96e
parentb39c90b6560c4458d46cb243abea0dcb7bc126d1
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>
arch/x86/kvm/i8254.c
arch/x86/kvm/i8254.h
arch/x86/kvm/x86.c