From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756752Ab3LSQLx (ORCPT ); Thu, 19 Dec 2013 11:11:53 -0500 Received: from qmta04.emeryville.ca.mail.comcast.net ([76.96.30.40]:55721 "EHLO qmta04.emeryville.ca.mail.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754089Ab3LSPuh (ORCPT ); Thu, 19 Dec 2013 10:50:37 -0500 Message-Id: <20131219155031.290596459@linux.com> Date: Thu, 19 Dec 2013 09:50:20 -0600 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/40] drivers/char/random: Replace __get_cpu_var uses References: <20131219155015.443763038@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 2013-12-02 16:07:47.924685509 -0600 +++ linux/drivers/char/random.c 2013-12-02 16:07:47.924685509 -0600 @@ -838,7 +838,7 @@ static DEFINE_PER_CPU(struct fast_pool, 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();