]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
rcu: Rename rcu_dynticks_zero_in_eqs() into rcu_watching_zero_in_eqs()
authorValentin Schneider <vschneid@redhat.com>
Mon, 29 Apr 2024 11:11:34 +0000 (13:11 +0200)
committerNeeraj Upadhyay <neeraj.upadhyay@kernel.org>
Thu, 15 Aug 2024 16:00:42 +0000 (21:30 +0530)
The context_tracking.state RCU_DYNTICKS subvariable has been renamed to
RCU_WATCHING, reflect that change in the related helpers.

Signed-off-by: Valentin Schneider <vschneid@redhat.com>
Reviewed-by: Frederic Weisbecker <frederic@kernel.org>
Signed-off-by: Neeraj Upadhyay <neeraj.upadhyay@kernel.org>
kernel/rcu/rcu.h
kernel/rcu/tasks.h
kernel/rcu/tree.c

index 38238e595a61a45fd263df234e199c722149968b..5564402af4cbd46767b5934ba56010e5ebd04e03 100644 (file)
@@ -606,7 +606,7 @@ void srcutorture_get_gp_data(struct srcu_struct *sp, int *flags,
 #endif
 
 #ifdef CONFIG_TINY_RCU
-static inline bool rcu_dynticks_zero_in_eqs(int cpu, int *vp) { return false; }
+static inline bool rcu_watching_zero_in_eqs(int cpu, int *vp) { return false; }
 static inline unsigned long rcu_get_gp_seq(void) { return 0; }
 static inline unsigned long rcu_exp_batches_completed(void) { return 0; }
 static inline unsigned long
@@ -619,7 +619,7 @@ static inline void rcu_fwd_progress_check(unsigned long j) { }
 static inline void rcu_gp_slow_register(atomic_t *rgssp) { }
 static inline void rcu_gp_slow_unregister(atomic_t *rgssp) { }
 #else /* #ifdef CONFIG_TINY_RCU */
-bool rcu_dynticks_zero_in_eqs(int cpu, int *vp);
+bool rcu_watching_zero_in_eqs(int cpu, int *vp);
 unsigned long rcu_get_gp_seq(void);
 unsigned long rcu_exp_batches_completed(void);
 unsigned long srcu_batches_completed(struct srcu_struct *sp);
index ba3440a45b6dd49a40b649722396df1958b4adee..2484c1a8e051a82025917204b7ef46e99a9c94ac 100644 (file)
@@ -1613,7 +1613,7 @@ static int trc_inspect_reader(struct task_struct *t, void *bhp_in)
                // However, we cannot safely change its state.
                n_heavy_reader_attempts++;
                // Check for "running" idle tasks on offline CPUs.
-               if (!rcu_dynticks_zero_in_eqs(cpu, &t->trc_reader_nesting))
+               if (!rcu_watching_zero_in_eqs(cpu, &t->trc_reader_nesting))
                        return -EINVAL; // No quiescent state, do it the hard way.
                n_heavy_reader_updates++;
                nesting = 0;
index 93570cb5e99e6746f26edfc724c0043ed7980c49..ac3577ac10bdc3a79cdf1e5d681f76e878fd8023 100644 (file)
@@ -341,7 +341,7 @@ static bool rcu_watching_snap_stopped_since(struct rcu_data *rdp, int snap)
  * Return true if the referenced integer is zero while the specified
  * CPU remains within a single extended quiescent state.
  */
-bool rcu_dynticks_zero_in_eqs(int cpu, int *vp)
+bool rcu_watching_zero_in_eqs(int cpu, int *vp)
 {
        int snap;