From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754919AbaHZSMx (ORCPT ); Tue, 26 Aug 2014 14:12:53 -0400 Received: from mail-qg0-f41.google.com ([209.85.192.41]:45558 "EHLO mail-qg0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752556AbaHZSMv (ORCPT ); Tue, 26 Aug 2014 14:12:51 -0400 Date: Tue, 26 Aug 2014 14:12:45 -0400 From: Tejun Heo To: Christoph Lameter Cc: akpm@linuxfoundation.org, rostedt@goodmis.org, linux-kernel@vger.kernel.org, Ingo Molnar , Peter Zijlstra , Thomas Gleixner , Ralf Baechle Subject: Re: [PATCH 21/35] [PATCH 21/36] mips: Replace __get_cpu_var uses Message-ID: <20140826181245.GE31659@mtj.dyndns.org> References: <20140817173023.439660246@linux.com> <20140817173036.188287809@linux.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140817173036.188287809@linux.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Aug 17, 2014 at 12:30:44PM -0500, Christoph Lameter wrote: > __get_cpu_var() is used for multiple purposes in the kernel source. One of > them is address calculation via the form &__get_cpu_var(x). This calculates > the address for the instance of the percpu variable of the current processor > based on an offset. > > Other use cases are for storing and retrieving data from the current > processors percpu area. __get_cpu_var() can be used as an lvalue when > writing data or on the right side of an assignment. ... > Cc: Ralf Baechle > Signed-off-by: Christoph Lameter (Please disregard the ones I posted for v1 of the patch series) Applied to percpu/for-3.18-consistent-ops. Please let me know if this patch should be routed differently. Note that this patch was to be applied to percpu/for-3.17 but delayed due to build issues caused by cpumask_var_t. Thanks. -- tejun