summaryrefslogtreecommitdiff
path: root/Documentation/scheduler/sched-domains.rst
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2024-03-08 14:18:08 +0300
committerIngo Molnar <mingo@kernel.org>2024-03-12 13:59:59 +0300
commit86dd6c04ef9f213e14d60c9f64bce1cc019f816e (patch)
tree6383585f4965843d9d57e0cf456293462275fc0c /Documentation/scheduler/sched-domains.rst
parent70a27d6d1b19392a23bb4a41de7788fbc539f18d (diff)
downloadlinux-86dd6c04ef9f213e14d60c9f64bce1cc019f816e.tar.xz
sched/balancing: Rename scheduler_tick() => sched_tick()
- Standardize on prefixing scheduler-internal functions defined in <linux/sched.h> with sched_*() prefix. scheduler_tick() was the only function using the scheduler_ prefix. Harmonize it. - The other reason to rename it is the NOHZ scheduler tick handling functions are already named sched_tick_*(). Make the 'git grep sched_tick' more meaningful. Signed-off-by: Ingo Molnar <mingo@kernel.org> Acked-by: Valentin Schneider <vschneid@redhat.com> Reviewed-by: Shrikanth Hegde <sshegde@linux.ibm.com> Link: https://lore.kernel.org/r/20240308111819.1101550-3-mingo@kernel.org
Diffstat (limited to 'Documentation/scheduler/sched-domains.rst')
-rw-r--r--Documentation/scheduler/sched-domains.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/scheduler/sched-domains.rst b/Documentation/scheduler/sched-domains.rst
index 6577b068f921..541d6c617971 100644
--- a/Documentation/scheduler/sched-domains.rst
+++ b/Documentation/scheduler/sched-domains.rst
@@ -32,13 +32,13 @@ load of each of its member CPUs, and only when the load of a group becomes
out of balance are tasks moved between groups.
In kernel/sched/core.c, trigger_load_balance() is run periodically on each CPU
-through scheduler_tick(). It raises a softirq after the next regularly scheduled
+through sched_tick(). It raises a softirq after the next regularly scheduled
rebalancing event for the current runqueue has arrived. The actual load
balancing workhorse, sched_balance_softirq()->rebalance_domains(), is then run
in softirq context (SCHED_SOFTIRQ).
The latter function takes two arguments: the runqueue of current CPU and whether
-the CPU was idle at the time the scheduler_tick() happened and iterates over all
+the CPU was idle at the time the sched_tick() happened and iterates over all
sched domains our CPU is on, starting from its base domain and going up the ->parent
chain. While doing that, it checks to see if the current domain has exhausted its
rebalance interval. If so, it runs load_balance() on that domain. It then checks