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)
commita0a2260c12d8658e522f21ed8ece72bbdede58fd
tree4e6943b2aea4e0d6eed77c8718186c8ef9dbeb84
parent5ae78e95ed0c771935d0d24291d221312524830c
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