Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 24c9301f authored by Christoph Lameter's avatar Christoph Lameter Committed by Bryan Wu
Browse files

drivers/leds: Replace __get_cpu_var use through this_cpu_ptr



Use this_cpu_ptr for the address calculation instead of __get_cpu_var.

Signed-off-by: default avatarChristoph Lameter <cl@linux.com>
Signed-off-by: default avatarBryan Wu <cooloney@gmail.com>
parent 9ef8c877
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {