From 7c124e3714c38157230ed1a5d743b37defe64dc2 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Sat, 5 Jun 2021 06:42:20 -0700 Subject: x86: Install [BZ #27958] 1. Install for which includes . 2. Rename HAS_CPU_FEATURE to CPU_FEATURE_PRESENT which checks if the processor has the feature. 3. Rename CPU_FEATURE_USABLE to CPU_FEATURE_ACTIVE which checks if the feature is active. There may be other preconditions, like sufficient stack space or further setup for AMX, which must be satisfied before the feature can be used. This fixes BZ #27958. Reviewed-by: Carlos O'Donell --- sysdeps/x86/tst-cpu-features-cpuinfo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sysdeps/x86/tst-cpu-features-cpuinfo.c') diff --git a/sysdeps/x86/tst-cpu-features-cpuinfo.c b/sysdeps/x86/tst-cpu-features-cpuinfo.c index 76bf5b2..2d4927f 100644 --- a/sysdeps/x86/tst-cpu-features-cpuinfo.c +++ b/sysdeps/x86/tst-cpu-features-cpuinfo.c @@ -55,7 +55,7 @@ get_cpuinfo (void) int check_proc (const char *proc_name, const char *search_name, int flag, - int usable, const char *name) + int active, const char *name) { int found = 0; @@ -79,7 +79,7 @@ check_proc (const char *proc_name, const char *search_name, int flag, if (found != flag) { - if (found || usable) + if (found || active) printf (" *** failure ***\n"); else { -- cgit v1.1