Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751702AbbGJEbD (ORCPT ); Fri, 10 Jul 2015 00:31:03 -0400 Received: from us01smtprelay-2.synopsys.com ([198.182.47.9]:53738 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750805AbbGJEa4 convert rfc822-to-8bit (ORCPT ); Fri, 10 Jul 2015 00:30:56 -0400 From: Vineet Gupta To: Peter Zijlstra , "linux-kernel@vger.kernel.org" , "linux-arch@vger.kernel.org" CC: "rth@twiddle.net" , "Vineet.Gupta1@synopsys.com" , "linux@arm.linux.org.uk" , "will.deacon@arm.com" , "hskinnemoen@gmail.com" , "realmz6@gmail.com" , "dhowells@redhat.com" , "rkuo@codeaurora.org" , "tony.luck@intel.com" , "geert@linux-m68k.org" , "james.hogan@imgtec.com" , "ralf@linux-mips.org" , "jejb@parisc-linux.org" , "benh@kernel.crashing.org" , "heiko.carstens@de.ibm.com" , "davem@davemloft.net" , "cmetcalf@ezchip.com" , "mingo@kernel.org" Subject: Re: [RFC][PATCH 02/24] arc: Provide atomic_{or,xor,and} Thread-Topic: [RFC][PATCH 02/24] arc: Provide atomic_{or,xor,and} Thread-Index: AQHQunCgyAH23JGzD0K9GR+krBLofg== Date: Fri, 10 Jul 2015 04:30:46 +0000 Message-ID: References: <20150709172855.564686637@infradead.org> <20150709175308.217482496@infradead.org> Accept-Language: en-US, en-IN Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.12.197.226] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 891 Lines: 24 On Thursday 09 July 2015 11:26 PM, Peter Zijlstra wrote: > Implement atomic logic ops -- atomic_{or,xor,and}. > > These will replace the atomic_{set,clear}_mask functions that are > available on some archs. > > Signed-off-by: Peter Zijlstra (Intel) Acked-by: Vineet Gupta Since we are on the topic, the cmpxchg() loop in arch/arc/kernel/smp.c still irritates me. Do we need a new set of primitives to operate atomically on non atomic_t data or does that mean that the data *not* being atomic_t but requiring such semantics is the fundamental problem and thus needs to be converted first. -Vineet -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/