OSDN Git Service

KVM: MIPS: Fold comparecount_func() into comparecount_wakeup()
authorSean Christopherson <sean.j.christopherson@intel.com>
Mon, 3 Feb 2020 18:42:00 +0000 (10:42 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 5 Feb 2020 14:29:55 +0000 (15:29 +0100)
commit879a37632b403eb8c0fe00e14f907759100c8071
tree7bc4554e4c666d73f83d784a101ec7d094ca4af8
parent09df6307125cec07ef9168f1db2ffdbbcb304b1a
KVM: MIPS: Fold comparecount_func() into comparecount_wakeup()

Fold kvm_mips_comparecount_func() into kvm_mips_comparecount_wakeup() to
eliminate the nondescript function name as well as its unnecessary cast
of a vcpu to "unsigned long" and back to a vcpu.  Presumably func() was
used as a callback at some point during pre-upstream development, as
wakeup() is the only user of func() and has been the only user since
both with introduced by commit 669e846e6c4e ("KVM/MIPS32: MIPS arch
specific APIs for KVM").

Cc: Davidlohr Bueso <dbueso@suse.de>
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/mips/kvm/mips.c