Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761803AbZFKA7R (ORCPT ); Wed, 10 Jun 2009 20:59:17 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758157AbZFKA7A (ORCPT ); Wed, 10 Jun 2009 20:59:00 -0400 Received: from terminus.zytor.com ([198.137.202.10]:39674 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755530AbZFKA7A (ORCPT ); Wed, 10 Jun 2009 20:59:00 -0400 Message-ID: <4A3055B3.4070202@zytor.com> Date: Wed, 10 Jun 2009 17:54:11 -0700 From: "H. Peter Anvin" User-Agent: Thunderbird 2.0.0.21 (X11/20090320) MIME-Version: 1.0 To: Huang Ying CC: Steven Rostedt , "linux-kernel@vger.kernel.org" , Ingo Molnar , Andrew Morton , Thomas Gleixner , Peter Zijlstra , Frederic Weisbecker , Theodore Tso , Arnaldo Carvalho de Melo , Mathieu Desnoyers , Lai Jiangshan , "Martin J. Bligh" , Christoph Hellwig , Li Zefan , Hidetoshi Seto , Masami Hiramatsu Subject: Re: [PATCH 3/3] ring-buffer: add design document References: <20090610195311.767699959@goodmis.org> <20090610195525.429316815@goodmis.org> <1244681467.8361.654.camel@yhuang-dev.sh.intel.com> In-Reply-To: <1244681467.8361.654.camel@yhuang-dev.sh.intel.com> 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: 442 Lines: 14 Huang Ying wrote: > > As far as I know, some architectures have no hardware assisted (NMI > safe) cmpxchg. Is it OK to use cmpxchg in architecture-independent code? > Including the i386. -hpa -- 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/