summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorMikael Ronstrom <mikael@mysql.com>2008-12-10 14:02:52 +0100
committerMikael Ronstrom <mikael@mysql.com>2008-12-10 14:02:52 +0100
commit8e2b83e73332e6d28af06a51a457e2d6b323620b (patch)
treec534f41e5f21a97c83c4e7699f4cb734b690bbd5 /configure.in
parentabae8a2c9c969f98ef72b818e3147cf314fd284b (diff)
downloadmariadb-git-8e2b83e73332e6d28af06a51a457e2d6b323620b.tar.gz
Added a PAUSE instruction to the SPIN loop
according to recommendation from Intel.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index d7f250959d1..be6a4a33c65 100644
--- a/configure.in
+++ b/configure.in
@@ -2342,6 +2342,17 @@ fi
fi
#---END:
+#Check for x86 PAUSE instruction
+AC_MSG_CHECKING("for x86 PAUSE instruction")
+AC_TRY_COMPILE(
+[],
+[{__asm__ __volatile__ ("pause");}],
+x86_pause_exists=yes, x86_pause_exists=no)
+if test "$x86_pause_exists" = "yes"
+then
+ AC_DEFINE([HAVE_PAUSE_INSTRUCTION], [1], [Does x86 PAUSE instruction exist])
+fi
+
# Check if pthread_attr_setscope() exists
AC_CACHE_CHECK("for pthread_attr_setscope", mysql_cv_pthread_attr_setscope,
AC_TRY_LINK(