Skip to content

Commit

Permalink
rcu: Move early boot callback tests earlier
Browse files Browse the repository at this point in the history
Because callbacks can now be posted quite early in boot, move the
early boot callback tests to precede RCU initialization.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
  • Loading branch information
Paul E. McKenney committed Mar 3, 2015
1 parent 34404ca commit 4762767
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/rcu/tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -3948,6 +3948,8 @@ void __init rcu_init(void)
{
int cpu;

rcu_early_boot_tests();

rcu_bootup_announce();
rcu_init_geometry();
rcu_init_one(&rcu_bh_state, &rcu_bh_data);
Expand All @@ -3964,8 +3966,6 @@ void __init rcu_init(void)
pm_notifier(rcu_pm_notify, 0);
for_each_online_cpu(cpu)
rcu_cpu_notify(NULL, CPU_UP_PREPARE, (void *)(long)cpu);

rcu_early_boot_tests();
}

#include "tree_plugin.h"

0 comments on commit 4762767

Please sign in to comment.