All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] rcu/tree: Default jiffies_to_sched_qs to jiffies_till_sched_qs
@ 2019-03-11  9:46 Neeraj Upadhyay
       [not found] ` <20190311151854.GG13351@linux.ibm.com>
  0 siblings, 1 reply; 5+ messages in thread
From: Neeraj Upadhyay @ 2019-03-11  9:46 UTC (permalink / raw)
  To: paulmck, josh, rostedt, mathieu.desnoyers, jiangshanlai
  Cc: rcu, Neeraj Upadhyay

Current code does not call adjust_jiffies_till_sched_qs(),
if jiffies_till_sched_qs is specified. For the case, where
jiffies_till_first_fqs and jiffies_till_next_fqs are default,
jiffies_to_sched_qs won't be a correct adjustment of
jiffies_till_sched_qs.

Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
---
 kernel/rcu/tree.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c
index ddd5c74..10aeb89 100644
--- a/kernel/rcu/tree.c
+++ b/kernel/rcu/tree.c
@@ -3259,8 +3259,7 @@ static void __init rcu_init_geometry(void)
 		jiffies_till_first_fqs = d;
 	if (jiffies_till_next_fqs == ULONG_MAX)
 		jiffies_till_next_fqs = d;
-	if (jiffies_till_sched_qs == ULONG_MAX)
-		adjust_jiffies_till_sched_qs();
+	adjust_jiffies_till_sched_qs();
 
 	/* If the compile-time values are accurate, just leave. */
 	if (rcu_fanout_leaf == RCU_FANOUT_LEAF &&
-- 
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a
member of the Code Aurora Forum, hosted by The Linux Foundation


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-03-12 14:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-11  9:46 [PATCH] rcu/tree: Default jiffies_to_sched_qs to jiffies_till_sched_qs Neeraj Upadhyay
     [not found] ` <20190311151854.GG13351@linux.ibm.com>
2019-03-11 15:19   ` Paul E. McKenney
2019-03-11 17:35     ` Joel Fernandes
2019-03-11 22:47       ` Paul E. McKenney
2019-03-12 14:07         ` Joel Fernandes

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.