Skip to content

Commit

Permalink
drivers/leds: Replace __get_cpu_var use through this_cpu_ptr
Browse files Browse the repository at this point in the history
Use this_cpu_ptr for the address calculation instead of __get_cpu_var.

Signed-off-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
  • Loading branch information
Christoph Lameter authored and Bryan Wu committed May 8, 2014
1 parent 9ef8c87 commit 24c9301
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/leds/trigger/ledtrig-cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ static DEFINE_PER_CPU(struct led_trigger_cpu, cpu_trig);
*/
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) {
Expand Down

0 comments on commit 24c9301

Please sign in to comment.