rcu: Fix outdated rcu_scheduler_active comment
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Fri, 8 Apr 2016 12:00:03 +0000 (05:00 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 14 Jun 2016 23:01:39 +0000 (16:01 -0700)
commit0d95092ccba1a30b74fa52ff94ec5415e63744a0
tree9476ba20a1ddab23b73d2b3185f323061151d02e
parentaf8c34ce6ae32addda3788d54a7e340cad22516b
rcu: Fix outdated rcu_scheduler_active comment

The comment header for rcu_scheduler_active states that it is used
to optimize synchronize_sched() at early boot.  This is incorrect.
The synchronize_sched() function instead checks the number of online
CPUs.  This commit therefore replaces the comment's synchronize_sched()
with synchronize_rcu(), which really does use rcu_scheduler_active for
this purpose.

Reported-by: Lihao Liang <lihao.liang@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcu/tree.c