From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2995 invoked by alias); 1 Jun 2017 14:33:15 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 2921 invoked by uid 89); 1 Jun 2017 14:33:11 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mx1.redhat.com DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com E9609C04B93B Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=triegel@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com E9609C04B93B Message-ID: <1496327584.5890.1038.camel@redhat.com> Subject: Re: [PATCH 1/2] [PING] Optimize generic spinlock code and use C11 like atomic macros. From: Torvald Riegel To: Joseph Myers Cc: Stefan Liebler , libc-alpha@sourceware.org Date: Thu, 01 Jun 2017 14:33:00 -0000 In-Reply-To: References: <1481905917-15654-1-git-send-email-stli@linux.vnet.ibm.com> <5857CF10.1060100@arm.com> <628f6311-239c-5eea-572c-c2acae6fcbee@linux.vnet.ibm.com> <1487017743.16322.80.camel@redhat.com> <60a34645-17e4-6693-1343-03c55b0c47ad@linux.vnet.ibm.com> <1487437038.20203.68.camel@redhat.com> <25ad863b-6f20-bfb7-95e6-3b04a2b3eee8@linux.vnet.ibm.com> <1487598702.20203.138.camel@redhat.com> <1491487245.5374.161.camel@redhat.com> <09ae8ea7-4119-76c1-cd58-36cbdf587390@linux.vnet.ibm.com> <1491745903.5374.199.camel@redhat.com> <9c6a4c3a-4de9-1cd0-46e6-3a43151aed7d@linux.vnet.ibm.com> <2607f4f9-768e-e1e6-2e2e-17696991813d@linux.vnet.ibm.com> <6d90fe07-19e1-8c05-d283-dd21f6902db3@linux.vnet.ibm.com> <1496128691.5890.973.camel@redhat.com> <1496249292.5890.1034.camel@redhat.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-SW-Source: 2017-06/txt/msg00028.txt.bz2 On Thu, 2017-06-01 at 13:39 +0000, Joseph Myers wrote: > On Wed, 31 May 2017, Torvald Riegel wrote: > > > > Nobody answered for these archs: > > > -alpha: #define ATOMIC_EXCHANGE_USES_CAS 1 > > > -arm: #define ATOMIC_EXCHANGE_USES_CAS 1 > > > -hppa: #define ATOMIC_EXCHANGE_USES_CAS 1 > > > -ia64: #define ATOMIC_EXCHANGE_USES_CAS 0 > > > -m68k: #define ATOMIC_EXCHANGE_USES_CAS 1 > > > -microblaze: #define ATOMIC_EXCHANGE_USES_CAS 1 > > > -nios2: #define ATOMIC_EXCHANGE_USES_CAS 1 > > > -sh: #define ATOMIC_EXCHANGE_USES_CAS 1 > > > -sparc: #define ATOMIC_EXCHANGE_USES_CAS 1 > > > > Joseph, can you clarify for arm? > > You already answered for ARM > . > What I wrote there was just my understanding, and I wasn't sure. I'll assume that you are saying that this is indeed correct. If so, the patch should remove the XXX comment.