From: Christoph Lameter Date: Sun, 17 Aug 2014 17:30:29 +0000 (-0500) Subject: drivers/char/random: Replace __get_cpu_var uses X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1b2a1a7e8ad1144dc3f676f2651cb84e01548d59;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git drivers/char/random: Replace __get_cpu_var uses A single case of using __get_cpu_var for address calculation. Cc: Arnd Bergmann Cc: Greg Kroah-Hartman Signed-off-by: Christoph Lameter Signed-off-by: Tejun Heo --- diff --git a/drivers/char/random.c b/drivers/char/random.c index c18d41db83d8..82759cef9043 100644 --- a/drivers/char/random.c +++ b/drivers/char/random.c @@ -874,7 +874,7 @@ static __u32 get_reg(struct fast_pool *f, struct pt_regs *regs) 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();