Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760862AbZFIODI (ORCPT ); Tue, 9 Jun 2009 10:03:08 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753499AbZFIOC5 (ORCPT ); Tue, 9 Jun 2009 10:02:57 -0400 Received: from mga01.intel.com ([192.55.52.88]:13251 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753022AbZFIOC4 convert rfc822-to-8bit (ORCPT ); Tue, 9 Jun 2009 10:02:56 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.41,331,1241420400"; d="scan'208";a="464768221" From: "Sosnowski, Maciej" To: "Williams, Dan J" , "cl@linux-foundation.org" CC: "linux-kernel@vger.kernel.org" , Tejun Heo , Eric Biederman , Stephen Hemminger , Trond Myklebust , Herbert Xu , David L Stevens , "mingo@elte.hu" , "rusty@rustcorp.com.au" , "davem@davemloft.net" Date: Tue, 9 Jun 2009 15:02:27 +0100 Subject: RE: [this_cpu_xx 06/11] Eliminate get/put_cpu Thread-Topic: [this_cpu_xx 06/11] Eliminate get/put_cpu Thread-Index: AcnmFKxf3cVzfAm7TeC6MU8EHJ14NwC9h00A Message-ID: <129600E5E5FB004392DDC3FB599660D7ACCAE1C6@irsmsx504.ger.corp.intel.com> References: <20090605191819.376530498@gentwo.org> <20090605191851.393195588@gentwo.org> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US 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: 1033 Lines: 27 Dan Williams wrote: > [ added Maciej to the cc ] Thanks Dan. > > On Fri, Jun 5, 2009 at 12:18 PM, wrote: >> There are cases where we can use this_cpu_ptr and as the result >> of using this_cpu_ptr() we no longer need to determine the current executing cpu. >> >> In those places no get/put_cpu combination is needed anymore. >> The local cpu variable can be eliminated. >> >> Preemption still needs to be disabled and enabled since the >> modifications of the per cpu variables is not atomic. There may >> be multiple per cpu variables modified and those must all >> be from the same processor. >> >> cc: Dan Williams > > Acked-by: Dan Williams Acked-by: Maciej Sosnowski -- 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/