From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6361 invoked by alias); 15 Aug 2012 17:24:46 -0000 Received: (qmail 6327 invoked by uid 22791); 15 Aug 2012 17:24:44 -0000 X-SWARE-Spam-Status: No, hits=-7.3 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 15 Aug 2012 17:24:30 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q7FHOJrZ024401 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 15 Aug 2012 13:24:21 -0400 Received: from stumpy.slc.redhat.com (ovpn-113-80.phx2.redhat.com [10.3.113.80]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q7FHOI3k032213; Wed, 15 Aug 2012 13:24:19 -0400 Message-ID: <502BDB42.4060905@redhat.com> Date: Wed, 15 Aug 2012 17:24:00 -0000 From: Jeff Law User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120717 Thunderbird/14.0 MIME-Version: 1.0 To: Roland McGrath CC: Maxim Kuvyrkov , Andrew Haley , David Miller , "Joseph S. Myers" , Richard Sandiford , libc-ports@sourceware.org, GLIBC Devel , Chris Metcalf Subject: Re: [PATCH] Unify pthread_spin_[try]lock implementations. References: <65B470D2-4D01-4BA1-AEC5-A72C0006EA22@codesourcery.com> <20120711081441.73BB22C093@topped-with-meat.com> <20120711.012509.1325789838255235021.davem@davemloft.net> <4FFD3CD9.4030206@redhat.com> <84304C03-6A49-4263-9016-05486EDC0E98@codesourcery.com> <4FFD4114.9000806@redhat.com> <20120711112235.B28CA2C099@topped-with-meat.com> <7FBB4F87-9FF3-4239-818F-5A38C8094011@codesourcery.com> <20120725181300.DD1812C0B5@topped-with-meat.com> <36A2FFD8-0C98-4AB6-8C64-2EEC5CC67A63@codesourcery.com> <20120815162637.B74982C0F2@topped-with-meat.com> <502BD690.50501@redhat.com> <20120815171042.D94E52C0D2@topped-with-meat.com> In-Reply-To: <20120815171042.D94E52C0D2@topped-with-meat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact libc-ports-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: libc-ports-owner@sourceware.org X-SW-Source: 2012-08/txt/msg00138.txt.bz2 On 08/15/2012 11:10 AM, Roland McGrath wrote: >> It seems to me that SPIN_LOCK_READS_BETWEEN_CMPXCHG may have the >> property that varying it at runtime based on the characteristics of the >> particular chip running the application might be worthwhile. > > Nothing prevents a machine from defining the macro to use a global variable > that is set by some machine-specific initialization code. Understood. Just wanted to raise the issue. No pressing need to resolve it now, but it's on Red Hat's radar and now it's on the community's radar :-) jeff