KVM: Remove internal timer abstraction
kvm_timer_fn(), the sole inhabitant of timer.c, is only used by lapic.c. Move it there to make it easier to hack on it. struct kvm_timer is a thin wrapper around hrtimer, and only adds obfuscation. Move near its two users (with different names) to prepare for simplification. Signed-off-by:Avi Kivity <avi@redhat.com> Signed-off-by:
Marcelo Tosatti <mtosatti@redhat.com>
Showing
- arch/x86/kvm/Makefile 1 addition, 1 deletionarch/x86/kvm/Makefile
- arch/x86/kvm/i8254.c 4 additions, 4 deletionsarch/x86/kvm/i8254.c
- arch/x86/kvm/i8254.h 17 additions, 1 deletionarch/x86/kvm/i8254.h
- arch/x86/kvm/kvm_timer.h 0 additions, 18 deletionsarch/x86/kvm/kvm_timer.h
- arch/x86/kvm/lapic.c 29 additions, 1 deletionarch/x86/kvm/lapic.c
- arch/x86/kvm/lapic.h 16 additions, 1 deletionarch/x86/kvm/lapic.h
- arch/x86/kvm/timer.c 0 additions, 47 deletionsarch/x86/kvm/timer.c
Loading
Please register or sign in to comment