Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

rcu: Rename rcu_dynticks_zero_in_eqs() into rcu_watching_zero_in_eqs()

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>

authored by

Valentin Schneider and committed by
Neeraj Upadhyay
fc1096ab 3116a32e

+4 -4
+2 -2
kernel/rcu/rcu.h
··· 606 606 #endif 607 607 608 608 #ifdef CONFIG_TINY_RCU 609 - static inline bool rcu_dynticks_zero_in_eqs(int cpu, int *vp) { return false; } 609 + static inline bool rcu_watching_zero_in_eqs(int cpu, int *vp) { return false; } 610 610 static inline unsigned long rcu_get_gp_seq(void) { return 0; } 611 611 static inline unsigned long rcu_exp_batches_completed(void) { return 0; } 612 612 static inline unsigned long ··· 619 619 static inline void rcu_gp_slow_register(atomic_t *rgssp) { } 620 620 static inline void rcu_gp_slow_unregister(atomic_t *rgssp) { } 621 621 #else /* #ifdef CONFIG_TINY_RCU */ 622 - bool rcu_dynticks_zero_in_eqs(int cpu, int *vp); 622 + bool rcu_watching_zero_in_eqs(int cpu, int *vp); 623 623 unsigned long rcu_get_gp_seq(void); 624 624 unsigned long rcu_exp_batches_completed(void); 625 625 unsigned long srcu_batches_completed(struct srcu_struct *sp);
+1 -1
kernel/rcu/tasks.h
··· 1613 1613 // However, we cannot safely change its state. 1614 1614 n_heavy_reader_attempts++; 1615 1615 // Check for "running" idle tasks on offline CPUs. 1616 - if (!rcu_dynticks_zero_in_eqs(cpu, &t->trc_reader_nesting)) 1616 + if (!rcu_watching_zero_in_eqs(cpu, &t->trc_reader_nesting)) 1617 1617 return -EINVAL; // No quiescent state, do it the hard way. 1618 1618 n_heavy_reader_updates++; 1619 1619 nesting = 0;
+1 -1
kernel/rcu/tree.c
··· 341 341 * Return true if the referenced integer is zero while the specified 342 342 * CPU remains within a single extended quiescent state. 343 343 */ 344 - bool rcu_dynticks_zero_in_eqs(int cpu, int *vp) 344 + bool rcu_watching_zero_in_eqs(int cpu, int *vp) 345 345 { 346 346 int snap; 347 347