lkml.org 
[lkml]   [2014]   [May]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: drivers/leds: Replace __get_cpu_var use through this_cpu_ptr
On Mon, May 5, 2014 at 9:48 AM, Christoph Lameter <cl@linux.com> wrote:
> Would you merge this patch please?
>
>

Sure, I merged it to my my tree
Thanks,
-Bryan

> Use this_cpu_ptr for the address calculation instead of __get_cpu_var.
>
> Acked-by: Bryan Wu <cooloney@gmail.com>
> Signed-off-by: Christoph Lameter <cl@linux.com>
>
> Index: linux/drivers/leds/trigger/ledtrig-cpu.c
> ===================================================================
> --- linux.orig/drivers/leds/trigger/ledtrig-cpu.c 2014-04-14 13:24:54.833360823 -0500
> +++ linux/drivers/leds/trigger/ledtrig-cpu.c 2014-04-14 13:24:54.825360977 -0500
> @@ -47,7 +47,7 @@
> */
> void ledtrig_cpu(enum cpu_led_event ledevt)
> {
> - struct led_trigger_cpu *trig = &__get_cpu_var(cpu_trig);
> + struct led_trigger_cpu *trig = this_cpu_ptr(&cpu_trig);
>
> /* Locate the correct CPU LED */
> switch (ledevt) {


\
 
 \ /
  Last update: 2014-05-08 04:21    [W:0.028 / U:1.112 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site