From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Zijlstra Subject: Re: [PATCH -v4 1/2] lib, Make gen_pool memory allocator lockless Date: Wed, 17 Nov 2010 11:40:58 +0100 Message-ID: <1289990458.2109.675.camel@laptop> References: <1289868791-16658-1-git-send-email-ying.huang@intel.com> <1289868791-16658-2-git-send-email-ying.huang@intel.com> <20101116135038.fcaa90ca.akpm@linux-foundation.org> <1289960281.8719.1218.camel@yhuang-dev> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Return-path: Received: from canuck.infradead.org ([134.117.69.58]:34416 "EHLO canuck.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933120Ab0KQKlA convert rfc822-to-8bit (ORCPT ); Wed, 17 Nov 2010 05:41:00 -0500 In-Reply-To: <1289960281.8719.1218.camel@yhuang-dev> Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: Huang Ying Cc: Andrew Morton , Len Brown , "linux-kernel@vger.kernel.org" , Andi Kleen , "linux-acpi@vger.kernel.org" , Linus Torvalds , Thomas Gleixner , Ingo Molnar , Mauro Carvalho Chehab On Wed, 2010-11-17 at 10:18 +0800, Huang Ying wrote: > > cmpxchg has been used in that way by ftrace and perf for a long time. So > I agree to make it a requirement on future architecture ports. Neither mandate an architecture do this though, only that when an architecture wants to support either feature and has NMIs (not all archs have NMI equivalents) it has to be safe.