Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754677AbZI3Q4V (ORCPT ); Wed, 30 Sep 2009 12:56:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754477AbZI3Q4V (ORCPT ); Wed, 30 Sep 2009 12:56:21 -0400 Received: from hp3.statik.tu-cottbus.de ([141.43.120.68]:41913 "EHLO hp3.statik.tu-cottbus.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754289AbZI3Q4U (ORCPT ); Wed, 30 Sep 2009 12:56:20 -0400 Message-ID: <4AC38D7A.7030407@s5r6.in-berlin.de> Date: Wed, 30 Sep 2009 18:55:22 +0200 From: Stefan Richter User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.1.22) Gecko/20090605 SeaMonkey/1.1.17 MIME-Version: 1.0 To: Arjan van de Ven CC: Linus Torvalds , Eric Dumazet , Martin Schwidefsky , Thomas Gleixner , John Stultz , Linux Kernel Mailing List , Peter Zijlstra , Ingo Molnar Subject: Re: Linux 2.6.32-rc1 References: <4AC060AE.1090401@gmail.com> <20090928191506.40b61793@mschwide.boeblingen.de.ibm.com> <4AC10365.7090802@gmail.com> <4AC2712C.4080901@gmail.com> <20090929232248.735bf4df@infradead.org> <20090930170754.0886ff2e@infradead.org> In-Reply-To: <20090930170754.0886ff2e@infradead.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 807 Lines: 21 Arjan van de Ven wrote: > Subject: [PATCH] x86: Provide an alternative() based cmpxchg64() > > Based on Linus' patch, this patch provides cmpxchg64() using > the alternative() infrastructure. > > Note: the fallback is NOT smp safe, just like the current fallback > is not SMP safe. As long as it can't be turned into an atomic access, shouldn't cmpxchg64 be hidden from the common kernel coder? Almost everybody will assume that it is an atomic operation and happily use it in unsafe places. -- Stefan Richter -=====-==--= =--= ====- http://arcgraph.de/sr/ -- 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/