]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Rename and tweak get_cpuid() to get_cpuid_entry()
authorSean Christopherson <seanjc@google.com>
Tue, 14 Jun 2022 20:06:45 +0000 (20:06 +0000)
committerSean Christopherson <seanjc@google.com>
Thu, 14 Jul 2022 01:14:15 +0000 (18:14 -0700)
commit9d9ef140725982e4fb50b3a122d6d0793136b9e9
treedbb26ad6773b01235adac542188d2572adae324c
parent6d6844f8fe65a990da865846b7762259150e0e56
KVM: selftests: Rename and tweak get_cpuid() to get_cpuid_entry()

Rename get_cpuid() to get_cpuid_entry() to better reflect its behavior.
Leave set_cpuid() as is to avoid unnecessary churn, that helper will soon
be removed entirely.

Oppurtunistically tweak the implementation to avoid using a temporary
variable in anticipation of taggin the input @cpuid with "const".

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Link: https://lore.kernel.org/r/20220614200707.3315957-21-seanjc@google.com
tools/testing/selftests/kvm/include/x86_64/processor.h
tools/testing/selftests/kvm/lib/x86_64/processor.c
tools/testing/selftests/kvm/x86_64/cpuid_test.c