@@ -233,7 +233,7 @@ static void __init setup_xstate_cache(void)
233233 xmm_space );
234234
235235 for_each_extended_xfeature (i , fpu_kernel_cfg .max_features ) {
236- cpuid_count (XSTATE_CPUID , i , & eax , & ebx , & ecx , & edx );
236+ cpuid_count (CPUID_LEAF_XSTATE , i , & eax , & ebx , & ecx , & edx );
237237
238238 xstate_sizes [i ] = eax ;
239239 xstate_flags [i ] = ecx ;
@@ -399,7 +399,7 @@ int xfeature_size(int xfeature_nr)
399399 u32 eax , ebx , ecx , edx ;
400400
401401 CHECK_XFEATURE (xfeature_nr );
402- cpuid_count (XSTATE_CPUID , xfeature_nr , & eax , & ebx , & ecx , & edx );
402+ cpuid_count (CPUID_LEAF_XSTATE , xfeature_nr , & eax , & ebx , & ecx , & edx );
403403 return eax ;
404404}
405405
@@ -442,9 +442,9 @@ static void __init __xstate_dump_leaves(void)
442442 * just in case there are some goodies up there
443443 */
444444 for (i = 0 ; i < XFEATURE_MAX + 10 ; i ++ ) {
445- cpuid_count (XSTATE_CPUID , i , & eax , & ebx , & ecx , & edx );
445+ cpuid_count (CPUID_LEAF_XSTATE , i , & eax , & ebx , & ecx , & edx );
446446 pr_warn ("CPUID[%02x, %02x]: eax=%08x ebx=%08x ecx=%08x edx=%08x\n" ,
447- XSTATE_CPUID , i , eax , ebx , ecx , edx );
447+ CPUID_LEAF_XSTATE , i , eax , ebx , ecx , edx );
448448 }
449449}
450450
@@ -485,7 +485,7 @@ static int __init check_xtile_data_against_struct(int size)
485485 * Check the maximum palette id:
486486 * eax: the highest numbered palette subleaf.
487487 */
488- cpuid_count (TILE_CPUID , 0 , & max_palid , & ebx , & ecx , & edx );
488+ cpuid_count (CPUID_LEAF_TILE , 0 , & max_palid , & ebx , & ecx , & edx );
489489
490490 /*
491491 * Cross-check each tile size and find the maximum number of
@@ -499,7 +499,7 @@ static int __init check_xtile_data_against_struct(int size)
499499 * eax[31:16]: bytes per title
500500 * ebx[31:16]: the max names (or max number of tiles)
501501 */
502- cpuid_count (TILE_CPUID , palid , & eax , & ebx , & edx , & edx );
502+ cpuid_count (CPUID_LEAF_TILE , palid , & eax , & ebx , & edx , & edx );
503503 tile_size = eax >> 16 ;
504504 max = ebx >> 16 ;
505505
@@ -634,7 +634,7 @@ static unsigned int __init get_compacted_size(void)
634634 * are no supervisor states, but XSAVEC still uses compacted
635635 * format.
636636 */
637- cpuid_count (XSTATE_CPUID , 1 , & eax , & ebx , & ecx , & edx );
637+ cpuid_count (CPUID_LEAF_XSTATE , 1 , & eax , & ebx , & ecx , & edx );
638638 return ebx ;
639639}
640640
@@ -675,7 +675,7 @@ static unsigned int __init get_xsave_size_user(void)
675675 * containing all the *user* state components
676676 * corresponding to bits currently set in XCR0.
677677 */
678- cpuid_count (XSTATE_CPUID , 0 , & eax , & ebx , & ecx , & edx );
678+ cpuid_count (CPUID_LEAF_XSTATE , 0 , & eax , & ebx , & ecx , & edx );
679679 return ebx ;
680680}
681681
@@ -767,13 +767,13 @@ void __init fpu__init_system_xstate(unsigned int legacy_size)
767767 /*
768768 * Find user xstates supported by the processor.
769769 */
770- cpuid_count (XSTATE_CPUID , 0 , & eax , & ebx , & ecx , & edx );
770+ cpuid_count (CPUID_LEAF_XSTATE , 0 , & eax , & ebx , & ecx , & edx );
771771 fpu_kernel_cfg .max_features = eax + ((u64 )edx << 32 );
772772
773773 /*
774774 * Find supervisor xstates supported by the processor.
775775 */
776- cpuid_count (XSTATE_CPUID , 1 , & eax , & ebx , & ecx , & edx );
776+ cpuid_count (CPUID_LEAF_XSTATE , 1 , & eax , & ebx , & ecx , & edx );
777777 fpu_kernel_cfg .max_features |= ecx + ((u64 )edx << 32 );
778778
779779 if ((fpu_kernel_cfg .max_features & XFEATURE_MASK_FPSSE ) != XFEATURE_MASK_FPSSE ) {
0 commit comments