From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754663Ab0LGPWq (ORCPT ); Tue, 7 Dec 2010 10:22:46 -0500 Received: from hera.kernel.org ([140.211.167.34]:45304 "EHLO hera.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752307Ab0LGPWp (ORCPT ); Tue, 7 Dec 2010 10:22:45 -0500 Message-ID: <4CFE510E.2010007@kernel.org> Date: Tue, 07 Dec 2010 16:21:50 +0100 From: Tejun Heo User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.2.12) Gecko/20101027 Lightning/1.0b2 Thunderbird/3.1.6 MIME-Version: 1.0 To: Christoph Lameter CC: akpm@linux-foundation.org, Pekka Enberg , Hugh Dickins , Thomas Gleixner , linux-kernel@vger.kernel.org, Eric Dumazet , Mathieu Desnoyers Subject: Re: [Use cpuops V1 05/11] core: Replace __get_cpu_var with __this_cpu_read if not used for an address. References: <20101206171618.302060721@linux.com> <20101206171639.183187260@linux.com> <4CFE44E2.9050408@kernel.org> In-Reply-To: X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.3 (hera.kernel.org [127.0.0.1]); Tue, 07 Dec 2010 15:21:53 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, again. On 12/07/2010 03:51 PM, Christoph Lameter wrote: > On Tue, 7 Dec 2010, Tejun Heo wrote: > >>> if (&per_cpu(tasklet_hi_vec, cpu).head != per_cpu(tasklet_hi_vec, cpu).tail) { >>> - *__get_cpu_var(tasklet_hi_vec).tail = per_cpu(tasklet_hi_vec, cpu).head; >>> - __get_cpu_var(tasklet_hi_vec).tail = per_cpu(tasklet_hi_vec, cpu).tail; >>> + *__this_cpuo_read(tasklet_hi_vec.tail) = per_cpu(tasklet_hi_vec, cpu).head; >>> + __this_cpu_write(tasklet_hi_vec.tail, per_cpu(tasklet_hi_vec, cpu).tail; >> >> I don't think __this_cpuo_read() would build. > > A CONFIG_HOTPLUG_CPU section. > > Fix up CONFIG_HOTPLUG_CPU compilation > > Signed-off-by: Christoph Lameter Can you please fold this into the original patch and resend? I skipped 04, 05 and 09. percpu#for-next now contains other patches. git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu.git for-next Thanks. -- tejun