mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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: Christoph Lameter <[email protected]> Signed-off-by: Bryan Wu <[email protected]>
This commit is contained in:
parent
9ef8c877e4
commit
24c9301ffd
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue