Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755368AbbESLof (ORCPT ); Tue, 19 May 2015 07:44:35 -0400 Received: from mout.kundenserver.de ([212.227.126.131]:54437 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751621AbbESLod (ORCPT ); Tue, 19 May 2015 07:44:33 -0400 From: Arnd Bergmann To: linux-arm-kernel@lists.infradead.org, ganguly.s@samsung.com Cc: "Waiman.Long@hp.com" , "peterz@infradead.org" , "vikram.m@samsung.com" , "raghavendra.kt@linux.vnet.ibm.com" , "oleg@redhat.com" , "linux-kernel@vger.kernel.org" , "mingo@redhat.com" , SHARAN ALLUR , "hpa@zytor.com" , "tglx@linutronix.de" , "torvalds@linux-foundation.org" Subject: Re: [RFC] arm: Add for atomic half word exchange Date: Tue, 19 May 2015 13:42:42 +0200 Message-ID: <39330782.97MFhnlPJe@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <1795987946.405311432034410830.JavaMail.weblogic@ep2mlwas07a> References: <1795987946.405311432034410830.JavaMail.weblogic@ep2mlwas07a> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:5hertp3ZtzHpcKUTs1QT0qWBci+cWEkGuKPwEQ6RKIJ+uFVvnE0 Hxu+4HMQZtMO/nGGwp8q+YwyvgJcYtL0Yfc2Gj4/UZ+NVtP9N1ChjrCRkErTPHG6NwYSRv8 V7ORaTysbd7YNYOa2ML4RrPtDZWf2g35NIJa5eY7Jb2sSdVriUIGmoIhcwOkZ7Jro957RXx XZ0EMuvrbElgXxjitJVMw== X-UI-Out-Filterresults: notjunk:1; Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 653 Lines: 15 On Tuesday 19 May 2015 11:20:11 Sarbojit Ganguly wrote: > Yes, I will try to do that. OTOH, I saw that there was a discussion on > removal of bad_xchg() altogether. Perhaps that approach be better than > adding this half word exchange? Removing bad_xchg() only helps insofar as we get a link-time error instead of a run-time error. That is certainly a good idea, but it does not solve your problem. Arnd -- 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/