mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-06 08:04:55 +00:00
hv: cpuid: remove cpuid()
The cupid() can be replaced with cupid_subleaf, which is more clear. Having both APIs makes reading difficult. Tracked-On: #4526 Signed-off-by: Li Fei1 <fei1.li@intel.com>
This commit is contained in:
@@ -495,7 +495,7 @@ static void init_pcpu_xsave(void)
|
||||
CPU_CR_WRITE(cr4, val64);
|
||||
|
||||
if (get_pcpu_id() == BSP_CPU_ID) {
|
||||
cpuid(CPUID_FEATURES, &unused, &unused, &ecx, &unused);
|
||||
cpuid_subleaf(CPUID_FEATURES, 0x0U, &unused, &unused, &ecx, &unused);
|
||||
|
||||
/* if set, update it */
|
||||
if ((ecx & CPUID_ECX_OSXSAVE) != 0U) {
|
||||
|
||||
Reference in New Issue
Block a user