aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rcutiny_plugin.h
diff options
context:
space:
mode:
authorPaul E. McKenney <paul.mckenney@linaro.org>2012-06-28 11:08:25 -0400
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2012-07-06 09:01:48 -0400
commitc701d5d9b384ff03ceb232ef21236364d784a411 (patch)
treeae5b4793c478d3c575e506f1d36c798b73c542ff /kernel/rcutiny_plugin.h
parent02a0677b0be545a07ffb15a13419efd7c82881e0 (diff)
rcu: Fix code-style issues involving "else"
The Linux kernel coding style says that single-statement blocks should omit curly braces unless the other leg of the "if" statement has multiple statements, in which case the curly braces should be included. This commit fixes RCU's violations of this rule. Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Diffstat (limited to 'kernel/rcutiny_plugin.h')
-rw-r--r--kernel/rcutiny_plugin.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/kernel/rcutiny_plugin.h b/kernel/rcutiny_plugin.h
index 116725b5edfb..918fd1e8509c 100644
--- a/kernel/rcutiny_plugin.h
+++ b/kernel/rcutiny_plugin.h
@@ -350,8 +350,9 @@ static int rcu_initiate_boost(void)
350 rcu_preempt_ctrlblk.boost_tasks = 350 rcu_preempt_ctrlblk.boost_tasks =
351 rcu_preempt_ctrlblk.gp_tasks; 351 rcu_preempt_ctrlblk.gp_tasks;
352 invoke_rcu_callbacks(); 352 invoke_rcu_callbacks();
353 } else 353 } else {
354 RCU_TRACE(rcu_initiate_boost_trace()); 354 RCU_TRACE(rcu_initiate_boost_trace());
355 }
355 return 1; 356 return 1;
356} 357}
357 358
@@ -778,9 +779,9 @@ void synchronize_rcu_expedited(void)
778 rpcp->exp_tasks = NULL; 779 rpcp->exp_tasks = NULL;
779 780
780 /* Wait for tail of ->blkd_tasks list to drain. */ 781 /* Wait for tail of ->blkd_tasks list to drain. */
781 if (!rcu_preempted_readers_exp()) 782 if (!rcu_preempted_readers_exp()) {
782 local_irq_restore(flags); 783 local_irq_restore(flags);
783 else { 784 } else {
784 rcu_initiate_boost(); 785 rcu_initiate_boost();
785 local_irq_restore(flags); 786 local_irq_restore(flags);
786 wait_event(sync_rcu_preempt_exp_wq, 787 wait_event(sync_rcu_preempt_exp_wq,