]> 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)
commit5f1b8b1e15bde6e6b379210ee3ac8ff08014cae5
tree4e6943b2aea4e0d6eed77c8718186c8ef9dbeb84
parent429a96bb11d77b5def56fb48c89fed79f0103383
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