]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Move bit() helper to cpuid.h
authorSean Christopherson <sean.j.christopherson@intel.com>
Tue, 17 Dec 2019 21:32:39 +0000 (13:32 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 21 Jan 2020 12:58:27 +0000 (13:58 +0100)
commite55079949972fd1f738a45a3c005621ff3fc9221
tree4e6943b2aea4e0d6eed77c8718186c8ef9dbeb84
parent73f9ea9f9eccdc565dfd2fbb28a84da51e035bef
KVM: x86: Move bit() helper to cpuid.h

Move bit() to cpuid.h in preparation for incorporating the reverse_cpuid
array in bit() build-time assertions.  Opportunistically use the BIT()
macro instead of open-coding the shift.

No functional change intended.

Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/cpuid.h
arch/x86/kvm/x86.h