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>
This commit is contained in:
H.J. Lu 2024-02-27 11:43:31 -08:00
parent c23107effb
commit 24c8db87c9

View File

@ -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)