aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorPranith Kumar <bobby.prani@gmail.com>2014-07-09 00:08:17 -0400
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2014-09-07 19:18:12 -0400
commite02b2edfa13878c6671d31d5c736f56f89d99bf1 (patch)
tree30e407b1cbeb8833db3fbb0341fbed945c4f940d /kernel
parent521d24ee598bd8a8b71d7ac76ce2c0da0e548406 (diff)
rcu: Use true/false instead of 1/0 for a bool type
This commit uses true/false instead of 1/0 for bool types in rcu_gp_fqs() and force_qs_rnp(). Signed-off-by: Pranith Kumar <bobby.prani@gmail.com> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/rcu/tree.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c
index 253ea55dc508..2719978ea018 100644
--- a/kernel/rcu/tree.c
+++ b/kernel/rcu/tree.c
@@ -1668,7 +1668,7 @@ static int rcu_gp_fqs(struct rcu_state *rsp, int fqs_state_in)
1668 if (fqs_state == RCU_SAVE_DYNTICK) { 1668 if (fqs_state == RCU_SAVE_DYNTICK) {
1669 /* Collect dyntick-idle snapshots. */ 1669 /* Collect dyntick-idle snapshots. */
1670 if (is_sysidle_rcu_state(rsp)) { 1670 if (is_sysidle_rcu_state(rsp)) {
1671 isidle = 1; 1671 isidle = true;
1672 maxj = jiffies - ULONG_MAX / 4; 1672 maxj = jiffies - ULONG_MAX / 4;
1673 } 1673 }
1674 force_qs_rnp(rsp, dyntick_save_progress_counter, 1674 force_qs_rnp(rsp, dyntick_save_progress_counter,
@@ -1677,7 +1677,7 @@ static int rcu_gp_fqs(struct rcu_state *rsp, int fqs_state_in)
1677 fqs_state = RCU_FORCE_QS; 1677 fqs_state = RCU_FORCE_QS;
1678 } else { 1678 } else {
1679 /* Handle dyntick-idle and offline CPUs. */ 1679 /* Handle dyntick-idle and offline CPUs. */
1680 isidle = 0; 1680 isidle = false;
1681 force_qs_rnp(rsp, rcu_implicit_dynticks_qs, &isidle, &maxj); 1681 force_qs_rnp(rsp, rcu_implicit_dynticks_qs, &isidle, &maxj);
1682 } 1682 }
1683 /* Clear flag to prevent immediate re-entry. */ 1683 /* Clear flag to prevent immediate re-entry. */
@@ -2450,7 +2450,7 @@ static void force_qs_rnp(struct rcu_state *rsp,
2450 for (; cpu <= rnp->grphi; cpu++, bit <<= 1) { 2450 for (; cpu <= rnp->grphi; cpu++, bit <<= 1) {
2451 if ((rnp->qsmask & bit) != 0) { 2451 if ((rnp->qsmask & bit) != 0) {
2452 if ((rnp->qsmaskinit & bit) != 0) 2452 if ((rnp->qsmaskinit & bit) != 0)
2453 *isidle = 0; 2453 *isidle = false;
2454 if (f(per_cpu_ptr(rsp->rda, cpu), isidle, maxj)) 2454 if (f(per_cpu_ptr(rsp->rda, cpu), isidle, maxj))
2455 mask |= bit; 2455 mask |= bit;
2456 } 2456 }