diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2011-05-16 05:44:06 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2011-05-26 12:42:21 -0400 |
commit | 1135633bddcf7a819a1490c18d04965c490bcc1e (patch) | |
tree | 99facc2b3416a7c00cf042d2f782a87859e30d26 /kernel/rcutree.c | |
parent | 0bbcc529fcea9c7de5e2e7243f9913b8f7302a8c (diff) |
rcu: Remove old memory barriers from rcu_process_callbacks()
Second step of partitioning of commit e59fb3120b.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/rcutree.c')
-rw-r--r-- | kernel/rcutree.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/kernel/rcutree.c b/kernel/rcutree.c index 3731141d8ad7..011bf6f261a2 100644 --- a/kernel/rcutree.c +++ b/kernel/rcutree.c | |||
@@ -1460,25 +1460,11 @@ __rcu_process_callbacks(struct rcu_state *rsp, struct rcu_data *rdp) | |||
1460 | */ | 1460 | */ |
1461 | static void rcu_process_callbacks(void) | 1461 | static void rcu_process_callbacks(void) |
1462 | { | 1462 | { |
1463 | /* | ||
1464 | * Memory references from any prior RCU read-side critical sections | ||
1465 | * executed by the interrupted code must be seen before any RCU | ||
1466 | * grace-period manipulations below. | ||
1467 | */ | ||
1468 | smp_mb(); /* See above block comment. */ | ||
1469 | |||
1470 | __rcu_process_callbacks(&rcu_sched_state, | 1463 | __rcu_process_callbacks(&rcu_sched_state, |
1471 | &__get_cpu_var(rcu_sched_data)); | 1464 | &__get_cpu_var(rcu_sched_data)); |
1472 | __rcu_process_callbacks(&rcu_bh_state, &__get_cpu_var(rcu_bh_data)); | 1465 | __rcu_process_callbacks(&rcu_bh_state, &__get_cpu_var(rcu_bh_data)); |
1473 | rcu_preempt_process_callbacks(); | 1466 | rcu_preempt_process_callbacks(); |
1474 | 1467 | ||
1475 | /* | ||
1476 | * Memory references from any later RCU read-side critical sections | ||
1477 | * executed by the interrupted code must be seen after any RCU | ||
1478 | * grace-period manipulations above. | ||
1479 | */ | ||
1480 | smp_mb(); /* See above block comment. */ | ||
1481 | |||
1482 | /* If we are last CPU on way to dyntick-idle mode, accelerate it. */ | 1468 | /* If we are last CPU on way to dyntick-idle mode, accelerate it. */ |
1483 | rcu_needs_cpu_flush(); | 1469 | rcu_needs_cpu_flush(); |
1484 | } | 1470 | } |