From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965831AbaFTTbm (ORCPT ); Fri, 20 Jun 2014 15:31:42 -0400 Received: from qmta03.emeryville.ca.mail.comcast.net ([76.96.30.32]:58497 "EHLO qmta03.emeryville.ca.mail.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965334AbaFTTbj (ORCPT ); Fri, 20 Jun 2014 15:31:39 -0400 Message-Id: <20140620193125.452730615@linux.com> Date: Fri, 20 Jun 2014 14:31:20 -0500 From: Christoph Lameter To: Tejun Heo Cc: akpm@linuxfoundation.org, rostedt@goodmis.org, linux-kernel@vger.kernel.org, Ingo Molnar , Peter Zijlstra , Thomas Gleixner , Arnd Bergmann , Greg Kroah-Hartman Subject: [PATCH 05/31] drivers/char/random: Replace __get_cpu_var uses References: <20140620193115.547427118@linux.com> Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline; filename=this_drivers_char Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org A single case of using __get_cpu_var for address calculation. Cc: Arnd Bergmann Cc: Greg Kroah-Hartman Signed-off-by: Christoph Lameter Index: linux/drivers/char/random.c =================================================================== --- linux.orig/drivers/char/random.c 2014-05-21 22:47:16.376070081 -0500 +++ linux/drivers/char/random.c 2014-05-21 22:47:16.368070243 -0500 @@ -838,7 +838,7 @@ void add_interrupt_randomness(int irq, int irq_flags) { struct entropy_store *r; - struct fast_pool *fast_pool = &__get_cpu_var(irq_randomness); + struct fast_pool *fast_pool = this_cpu_ptr(&irq_randomness); struct pt_regs *regs = get_irq_regs(); unsigned long now = jiffies; cycles_t cycles = random_get_entropy();