diff options
author | Paul E. McKenney <paulmck@linux.ibm.com> | 2018-11-21 22:35:03 +0300 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.ibm.com> | 2019-01-26 02:35:21 +0300 |
commit | c98cac603f1ce7d00e2a802b5640bced3bc3c1f2 (patch) | |
tree | 496e873aa9644697b35e203c736d9c738b01684f /include/linux | |
parent | 2aa5503026ceaa8860697b93c9e5bbbcd025ba89 (diff) | |
download | linux-c98cac603f1ce7d00e2a802b5640bced3bc3c1f2.tar.xz |
rcu: Rename rcu_check_callbacks() to rcu_sched_clock_irq()
The name rcu_check_callbacks() arguably made sense back in the early
2000s when RCU was quite a bit simpler than it is today, but it has
become quite misleading, especially with the advent of dyntick-idle
and NO_HZ_FULL. The rcu_check_callbacks() function is RCU's hook into
the scheduling-clock interrupt, and is now but one of many ways that
callbacks get promoted to invocable state.
This commit therefore changes the name to rcu_sched_clock_irq(),
which is the same number of characters and clearly indicates this
function's relation to the rest of the Linux kernel. In addition, for
the sake of consistency, rcu_flavor_check_callbacks() is also renamed
to rcu_flavor_sched_clock_irq().
While in the area, the header comments for both functions are reworked.
Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/rcupdate.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/rcupdate.h b/include/linux/rcupdate.h index 632113946757..6f8f047c4068 100644 --- a/include/linux/rcupdate.h +++ b/include/linux/rcupdate.h @@ -89,7 +89,7 @@ static inline int rcu_preempt_depth(void) /* Internal to kernel */ void rcu_init(void); extern int rcu_scheduler_active __read_mostly; -void rcu_check_callbacks(int user); +void rcu_sched_clock_irq(int user); void rcu_report_dead(unsigned int cpu); void rcutree_migrate_callbacks(int cpu); |