aboutsummaryrefslogtreecommitdiff
path: root/linuxthreads/sysdeps
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-08-30 02:13:26 +0000
committerUlrich Drepper <drepper@redhat.com>2001-08-30 02:13:26 +0000
commit746802f20fae7bd377ce5d7aa9114357af48e178 (patch)
treef8e4c7456aedf677054c4491264435137daa0d64 /linuxthreads/sysdeps
parent6c3ebebd1eddb7041248125fa5e228380400c436 (diff)
downloadglibc-746802f20fae7bd377ce5d7aa9114357af48e178.tar
glibc-746802f20fae7bd377ce5d7aa9114357af48e178.tar.gz
glibc-746802f20fae7bd377ce5d7aa9114357af48e178.tar.bz2
glibc-746802f20fae7bd377ce5d7aa9114357af48e178.zip
Update.
2001-08-29 Ulrich Drepper <drepper@redhat.com> * spinlock.c (__pthread_lock): Top max_count value with MAX_ADAPTIVE_SPIN_COUNT. * internals.h (MAX_ADAPTIVE_SPIN_COUNT): Define if not already done. * sysdeps/i386/i686/pt-machine.h (BUSY_WAIT_NOP): New macro to help P4.
Diffstat (limited to 'linuxthreads/sysdeps')
-rw-r--r--linuxthreads/sysdeps/i386/i686/pt-machine.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/linuxthreads/sysdeps/i386/i686/pt-machine.h b/linuxthreads/sysdeps/i386/i686/pt-machine.h
index 7df3e7e487..c7396024bb 100644
--- a/linuxthreads/sysdeps/i386/i686/pt-machine.h
+++ b/linuxthreads/sysdeps/i386/i686/pt-machine.h
@@ -64,3 +64,6 @@ __compare_and_swap (long int *p, long int oldval, long int newval)
#if __ASSUME_LDT_WORKS > 0
#include "../useldt.h"
#endif
+
+/* The P4 and above really want some help to prevent overheating. */
+#define BUSY_WAIT_NOP __asm__ ("rep; nop")