Skip to content

Commit 8d8a9d0

Browse files
committed
rcu: Remove obsolete ->dynticks_fqs and ->cond_resched_completed
The rcu_data structure's ->dynticks_fqs is incremented but never accesses. Its ->cond_resched_completed field isn't used at all. This commit therefore removes both fields. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
1 parent dc5a4f2 commit 8d8a9d0

2 files changed

Lines changed: 3 additions & 10 deletions

File tree

‎kernel/rcu/tree.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1039,7 +1039,6 @@ static int rcu_implicit_dynticks_qs(struct rcu_data *rdp)
10391039
*/
10401040
if (rcu_dynticks_in_eqs_since(rdp, rdp->dynticks_snap)) {
10411041
trace_rcu_fqs(rcu_state.name, rdp->gp_seq, rdp->cpu, TPS("dti"));
1042-
rdp->dynticks_fqs++;
10431042
rcu_gpnum_ovf(rnp, rdp);
10441043
return 1;
10451044
}

‎kernel/rcu/tree.h‎

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -203,17 +203,11 @@ struct rcu_data {
203203
int tick_nohz_enabled_snap; /* Previously seen value from sysfs. */
204204
#endif /* #ifdef CONFIG_RCU_FAST_NO_HZ */
205205

206-
/* 4) reasons this CPU needed to be kicked by force_quiescent_state */
207-
unsigned long dynticks_fqs; /* Kicked due to dynticks idle. */
208-
unsigned long cond_resched_completed;
209-
/* Grace period that needs help */
210-
/* from cond_resched(). */
211-
212-
/* 5) rcu_barrier(), OOM callbacks, and expediting. */
206+
/* 4) rcu_barrier(), OOM callbacks, and expediting. */
213207
struct rcu_head barrier_head;
214208
int exp_dynticks_snap; /* Double-check need for IPI. */
215209

216-
/* 6) Callback offloading. */
210+
/* 5) Callback offloading. */
217211
#ifdef CONFIG_RCU_NOCB_CPU
218212
struct rcu_head *nocb_head; /* CBs waiting for kthread. */
219213
struct rcu_head **nocb_tail;
@@ -240,7 +234,7 @@ struct rcu_data {
240234
/* Leader CPU takes GP-end wakeups. */
241235
#endif /* #ifdef CONFIG_RCU_NOCB_CPU */
242236

243-
/* 7) Diagnostic data, including RCU CPU stall warnings. */
237+
/* 6) Diagnostic data, including RCU CPU stall warnings. */
244238
unsigned int softirq_snap; /* Snapshot of softirq activity. */
245239
/* ->rcu_iw* fields protected by leaf rcu_node ->lock. */
246240
struct irq_work rcu_iw; /* Check for non-irq activity. */

0 commit comments

Comments
 (0)