x86: Avoid GLRO(dl_x86_cpu_features)

In init_cpu_features, replace GLRO(dl_x86_cpu_features) with
cpu_features to avoid an extra load.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
Reviewed-by: Florian Weimer <fweimer@redhat.com>
This commit is contained in:
H.J. Lu 2025-06-09 07:45:57 +08:00
parent 62fba6d980
commit 0a027674a1
1 changed files with 1 additions and 1 deletions

View File

@ -1256,7 +1256,7 @@ no_cpuid:
#endif
if (MINIMUM_X86_ISA_LEVEL >= AVX_X86_ISA_LEVEL
|| (GLRO(dl_x86_cpu_features).xsave_state_size != 0))
|| cpu_features->xsave_state_size != 0)
{
if (CPU_FEATURE_USABLE_P (cpu_features, XSAVEC))
{