projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e51833
)
softirq: Use __this_cpu_write() in takeover_tasklets()
author
Muchun Song
<smuchun@gmail.com>
Tue, 18 Jun 2019 14:33:05 +0000
(22:33 +0800)
committer
Thomas Gleixner
<tglx@linutronix.de>
Sun, 23 Jun 2019 16:14:27 +0000
(18:14 +0200)
The code is executed with interrupts disabled, so it's safe to use
__this_cpu_write().
[ tglx: Massaged changelog ]
Signed-off-by: Muchun Song <smuchun@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: joel@joelfernandes.org
Cc: rostedt@goodmis.org
Cc: frederic@kernel.org
Cc: paulmck@linux.vnet.ibm.com
Cc: alexander.levin@verizon.com
Cc: peterz@infradead.org
Link:
https://lkml.kernel.org/r/20190618143305.2038-1-smuchun@gmail.com
kernel/softirq.c
patch
|
blob
|
history
diff --git
a/kernel/softirq.c
b/kernel/softirq.c
index 2c3382378d94c4c748a2b5bc31471b77fcd826d2..eaf3bdf7c749ce667a173ba3e407c0ac7a8a4dc0 100644
(file)
--- a/
kernel/softirq.c
+++ b/
kernel/softirq.c
@@
-650,7
+650,7
@@
static int takeover_tasklets(unsigned int cpu)
/* Find end, append list for that CPU. */
if (&per_cpu(tasklet_vec, cpu).head != per_cpu(tasklet_vec, cpu).tail) {
*__this_cpu_read(tasklet_vec.tail) = per_cpu(tasklet_vec, cpu).head;
- this_cpu_write(tasklet_vec.tail, per_cpu(tasklet_vec, cpu).tail);
+
__
this_cpu_write(tasklet_vec.tail, per_cpu(tasklet_vec, cpu).tail);
per_cpu(tasklet_vec, cpu).head = NULL;
per_cpu(tasklet_vec, cpu).tail = &per_cpu(tasklet_vec, cpu).head;
}