Commit f0a07aea authored by Paul E. McKenney's avatar Paul E. McKenney Committed by Paul E. McKenney

rcu: Switch to this_cpu() primitives

This removes a couple of lines from invoke_rcu_cpu_kthread(), improving
readability.
Reported-by: default avatarChristoph Lameter <cl@linux.com>
Signed-off-by: default avatarPaul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: default avatarJosh Triplett <josh@joshtriplett.org>
parent 108aae22
......@@ -1480,18 +1480,14 @@ static void rcu_process_callbacks(void)
static void invoke_rcu_cpu_kthread(void)
{
unsigned long flags;
wait_queue_head_t *q;
int cpu;
local_irq_save(flags);
cpu = smp_processor_id();
per_cpu(rcu_cpu_has_work, cpu) = 1;
if (per_cpu(rcu_cpu_kthread_task, cpu) == NULL) {
__this_cpu_write(rcu_cpu_has_work, 1);
if (__this_cpu_read(rcu_cpu_kthread_task) == NULL) {
local_irq_restore(flags);
return;
}
q = &per_cpu(rcu_cpu_wq, cpu);
wake_up(q);
wake_up(&__get_cpu_var(rcu_cpu_wq));
local_irq_restore(flags);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment