From 746802f20fae7bd377ce5d7aa9114357af48e178 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 30 Aug 2001 02:13:26 +0000 Subject: Update. 2001-08-29 Ulrich Drepper * 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. --- linuxthreads/sysdeps/i386/i686/pt-machine.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'linuxthreads/sysdeps') 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") -- cgit v1.2.3