aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2024-02-27 11:43:31 -0800
committerH.J. Lu <hjl.tools@gmail.com>2024-02-27 11:50:52 -0800
commit24c8db87c9537469dded474c8ee5da5c988f9c55 (patch)
treec1fad3c7a781420aba8d4f7aa270d0fc11452723
parentc23107effbfe5300cee216a401009ebbc6e274f4 (diff)
downloadglibc-24c8db87c9537469dded474c8ee5da5c988f9c55.zip
glibc-24c8db87c9537469dded474c8ee5da5c988f9c55.tar.gz
glibc-24c8db87c9537469dded474c8ee5da5c988f9c55.tar.bz2
x86: Change ENQCMD test to CHECK_FEATURE_PRESENT
Since ENQCMD is mainly used in kernel, change the ENQCMD test to CHECK_FEATURE_PRESENT. Reviewed-by: Noah Goldstein <goldstein.w.n@gmail.com>
-rw-r--r--sysdeps/x86/tst-cpu-features-supports.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/x86/tst-cpu-features-supports.c b/sysdeps/x86/tst-cpu-features-supports.c
index 93008da..e270c29 100644
--- a/sysdeps/x86/tst-cpu-features-supports.c
+++ b/sysdeps/x86/tst-cpu-features-supports.c
@@ -115,7 +115,7 @@ do_test (int argc, char **argv)
#if __GNUC_PREREQ (11, 0)
fails += CHECK_FEATURE_ACTIVE (cmpxchg16b, CMPXCHG16B);
fails += CHECK_FEATURE_ACTIVE (cmpxchg8b, CX8);
- fails += CHECK_FEATURE_ACTIVE (enqcmd, ENQCMD);
+ fails += CHECK_FEATURE_PRESENT (enqcmd, ENQCMD);
fails += CHECK_FEATURE_ACTIVE (f16c, F16C);
#endif
#if __GNUC_PREREQ (4, 9)