aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rcutree.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/rcutree.c')
-rw-r--r--kernel/rcutree.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/kernel/rcutree.c b/kernel/rcutree.c
index 575d6414763e..27304bc15eca 100644
--- a/kernel/rcutree.c
+++ b/kernel/rcutree.c
@@ -1480,18 +1480,14 @@ static void rcu_process_callbacks(void)
1480static void invoke_rcu_cpu_kthread(void) 1480static void invoke_rcu_cpu_kthread(void)
1481{ 1481{
1482 unsigned long flags; 1482 unsigned long flags;
1483 wait_queue_head_t *q;
1484 int cpu;
1485 1483
1486 local_irq_save(flags); 1484 local_irq_save(flags);
1487 cpu = smp_processor_id(); 1485 __this_cpu_write(rcu_cpu_has_work, 1);
1488 per_cpu(rcu_cpu_has_work, cpu) = 1; 1486 if (__this_cpu_read(rcu_cpu_kthread_task) == NULL) {
1489 if (per_cpu(rcu_cpu_kthread_task, cpu) == NULL) {
1490 local_irq_restore(flags); 1487 local_irq_restore(flags);
1491 return; 1488 return;
1492 } 1489 }
1493 q = &per_cpu(rcu_cpu_wq, cpu); 1490 wake_up(&__get_cpu_var(rcu_cpu_wq));
1494 wake_up(q);
1495 local_irq_restore(flags); 1491 local_irq_restore(flags);
1496} 1492}
1497 1493