Loading kernel/rcu/tree.c +5 −5 Original line number Original line Diff line number Diff line Loading @@ -1814,9 +1814,9 @@ static void rcu_gp_slow(struct rcu_state *rsp, int delay) } } /* /* * Initialize a new grace period. Return 0 if no grace period required. * Initialize a new grace period. Return false if no grace period required. */ */ static int rcu_gp_init(struct rcu_state *rsp) static bool rcu_gp_init(struct rcu_state *rsp) { { unsigned long oldmask; unsigned long oldmask; struct rcu_data *rdp; struct rcu_data *rdp; Loading @@ -1827,7 +1827,7 @@ static int rcu_gp_init(struct rcu_state *rsp) if (!READ_ONCE(rsp->gp_flags)) { if (!READ_ONCE(rsp->gp_flags)) { /* Spurious wakeup, tell caller to go back to sleep. */ /* Spurious wakeup, tell caller to go back to sleep. */ raw_spin_unlock_irq(&rnp->lock); raw_spin_unlock_irq(&rnp->lock); return 0; return false; } } WRITE_ONCE(rsp->gp_flags, 0); /* Clear all flags: New grace period. */ WRITE_ONCE(rsp->gp_flags, 0); /* Clear all flags: New grace period. */ Loading @@ -1837,7 +1837,7 @@ static int rcu_gp_init(struct rcu_state *rsp) * Not supposed to be able to happen. * Not supposed to be able to happen. */ */ raw_spin_unlock_irq(&rnp->lock); raw_spin_unlock_irq(&rnp->lock); return 0; return false; } } /* Advance to a new grace period and initialize state. */ /* Advance to a new grace period and initialize state. */ Loading Loading @@ -1929,7 +1929,7 @@ static int rcu_gp_init(struct rcu_state *rsp) WRITE_ONCE(rsp->gp_activity, jiffies); WRITE_ONCE(rsp->gp_activity, jiffies); } } return 1; return true; } } /* /* Loading Loading
kernel/rcu/tree.c +5 −5 Original line number Original line Diff line number Diff line Loading @@ -1814,9 +1814,9 @@ static void rcu_gp_slow(struct rcu_state *rsp, int delay) } } /* /* * Initialize a new grace period. Return 0 if no grace period required. * Initialize a new grace period. Return false if no grace period required. */ */ static int rcu_gp_init(struct rcu_state *rsp) static bool rcu_gp_init(struct rcu_state *rsp) { { unsigned long oldmask; unsigned long oldmask; struct rcu_data *rdp; struct rcu_data *rdp; Loading @@ -1827,7 +1827,7 @@ static int rcu_gp_init(struct rcu_state *rsp) if (!READ_ONCE(rsp->gp_flags)) { if (!READ_ONCE(rsp->gp_flags)) { /* Spurious wakeup, tell caller to go back to sleep. */ /* Spurious wakeup, tell caller to go back to sleep. */ raw_spin_unlock_irq(&rnp->lock); raw_spin_unlock_irq(&rnp->lock); return 0; return false; } } WRITE_ONCE(rsp->gp_flags, 0); /* Clear all flags: New grace period. */ WRITE_ONCE(rsp->gp_flags, 0); /* Clear all flags: New grace period. */ Loading @@ -1837,7 +1837,7 @@ static int rcu_gp_init(struct rcu_state *rsp) * Not supposed to be able to happen. * Not supposed to be able to happen. */ */ raw_spin_unlock_irq(&rnp->lock); raw_spin_unlock_irq(&rnp->lock); return 0; return false; } } /* Advance to a new grace period and initialize state. */ /* Advance to a new grace period and initialize state. */ Loading Loading @@ -1929,7 +1929,7 @@ static int rcu_gp_init(struct rcu_state *rsp) WRITE_ONCE(rsp->gp_activity, jiffies); WRITE_ONCE(rsp->gp_activity, jiffies); } } return 1; return true; } } /* /* Loading