diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2015-01-20 00:10:21 -0500 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2015-03-03 14:06:22 -0500 |
commit | 476276781095c79580abe27a65988549ac7f5f89 (patch) | |
tree | c2645f451fcc6e7889a5d3f48a31b322342c596f /kernel/rcu | |
parent | 34404ca8fb252ccee662c4368c555ccf774acc3b (diff) |
rcu: Move early boot callback tests earlier
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>
Diffstat (limited to 'kernel/rcu')
-rw-r--r-- | kernel/rcu/tree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c index 0317bf7d997f..c8e6569c5fbd 100644 --- a/kernel/rcu/tree.c +++ b/kernel/rcu/tree.c | |||
@@ -3948,6 +3948,8 @@ void __init rcu_init(void) | |||
3948 | { | 3948 | { |
3949 | int cpu; | 3949 | int cpu; |
3950 | 3950 | ||
3951 | rcu_early_boot_tests(); | ||
3952 | |||
3951 | rcu_bootup_announce(); | 3953 | rcu_bootup_announce(); |
3952 | rcu_init_geometry(); | 3954 | rcu_init_geometry(); |
3953 | rcu_init_one(&rcu_bh_state, &rcu_bh_data); | 3955 | rcu_init_one(&rcu_bh_state, &rcu_bh_data); |
@@ -3964,8 +3966,6 @@ void __init rcu_init(void) | |||
3964 | pm_notifier(rcu_pm_notify, 0); | 3966 | pm_notifier(rcu_pm_notify, 0); |
3965 | for_each_online_cpu(cpu) | 3967 | for_each_online_cpu(cpu) |
3966 | rcu_cpu_notify(NULL, CPU_UP_PREPARE, (void *)(long)cpu); | 3968 | rcu_cpu_notify(NULL, CPU_UP_PREPARE, (void *)(long)cpu); |
3967 | |||
3968 | rcu_early_boot_tests(); | ||
3969 | } | 3969 | } |
3970 | 3970 | ||
3971 | #include "tree_plugin.h" | 3971 | #include "tree_plugin.h" |