projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ef8c87
)
drivers/leds: Replace __get_cpu_var use through this_cpu_ptr
author
Christoph Lameter
<cl@linux.com>
Mon, 5 May 2014 16:48:38 +0000
(09:48 -0700)
committer
Bryan Wu
<cooloney@gmail.com>
Thu, 8 May 2014 06:28:08 +0000
(14:28 +0800)
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>
drivers/leds/trigger/ledtrig-cpu.c
patch
|
blob
|
history
diff --git
a/drivers/leds/trigger/ledtrig-cpu.c
b/drivers/leds/trigger/ledtrig-cpu.c
index
1c3ee9f
..
aec0f02
100644
(file)
--- a/
drivers/leds/trigger/ledtrig-cpu.c
+++ b/
drivers/leds/trigger/ledtrig-cpu.c
@@
-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) {