Skip to content

Commit 49f82c6

Browse files
valschneiderNeeraj Upadhyay
authored andcommitted
rcu: Rename dyntick_save_progress_counter() into rcu_watching_snap_save()
The context_tracking.state RCU_DYNTICKS subvariable has been renamed to RCU_WATCHING, and the 'dynticks' prefix can be dropped without losing any meaning. Suggested-by: Frederic Weisbecker <[email protected]> Signed-off-by: Valentin Schneider <[email protected]> Reviewed-by: Frederic Weisbecker <[email protected]> Signed-off-by: Neeraj Upadhyay <[email protected]>
1 parent 76ce2b3 commit 49f82c6

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

Documentation/RCU/Design/Memory-Ordering/TreeRCU-dyntick.svg

Lines changed: 1 addition & 1 deletion
Loading

Documentation/RCU/Design/Memory-Ordering/TreeRCU-gp-fqs.svg

Lines changed: 1 addition & 1 deletion
Loading

Documentation/RCU/Design/Memory-Ordering/TreeRCU-gp.svg

Lines changed: 1 addition & 1 deletion
Loading

Documentation/RCU/Design/Memory-Ordering/TreeRCU-hotplug.svg

Lines changed: 1 addition & 1 deletion
Loading

kernel/rcu/tree.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -776,11 +776,11 @@ static void rcu_gpnum_ovf(struct rcu_node *rnp, struct rcu_data *rdp)
776776
}
777777

778778
/*
779-
* Snapshot the specified CPU's dynticks counter so that we can later
779+
* Snapshot the specified CPU's RCU_WATCHING counter so that we can later
780780
* credit them with an implicit quiescent state. Return 1 if this CPU
781781
* is in dynticks idle mode, which is an extended quiescent state.
782782
*/
783-
static int dyntick_save_progress_counter(struct rcu_data *rdp)
783+
static int rcu_watching_snap_save(struct rcu_data *rdp)
784784
{
785785
/*
786786
* Full ordering between remote CPU's post idle accesses and updater's
@@ -805,7 +805,7 @@ static int dyntick_save_progress_counter(struct rcu_data *rdp)
805805
/*
806806
* Returns positive if the specified CPU has passed through a quiescent state
807807
* by virtue of being in or having passed through an dynticks idle state since
808-
* the last call to dyntick_save_progress_counter() for this same CPU, or by
808+
* the last call to rcu_watching_snap_save() for this same CPU, or by
809809
* virtue of having been offline.
810810
*
811811
* Returns negative if the specified CPU needs a force resched.
@@ -1995,7 +1995,7 @@ static void rcu_gp_fqs(bool first_time)
19951995

19961996
if (first_time) {
19971997
/* Collect dyntick-idle snapshots. */
1998-
force_qs_rnp(dyntick_save_progress_counter);
1998+
force_qs_rnp(rcu_watching_snap_save);
19991999
} else {
20002000
/* Handle dyntick-idle and offline CPUs. */
20012001
force_qs_rnp(rcu_implicit_dynticks_qs);

0 commit comments

Comments
 (0)