]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita83d67642882fa24e510904ba9f8b1ad879b5b49
tree7bc4554e4c666d73f83d784a101ec7d094ca4af8
parentd6eeee81b563ab128b0f2b20d0fa9b44e535d857
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 959c7e2fb2fb ("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