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

docs: scheduler: Fix outdated parameter of rebalance_domains

According to the function prototype of rebalance_domains(), its first
parameter is *rq* and the document need to be updated.

Signed-off-by: Tang Yizhou <tangyizhou@huawei.com>
Link: https://lore.kernel.org/r/20211221031818.23186-1-tangyizhou@huawei.com
Signed-off-by: Jonathan Corbet <corbet@lwn.net>

authored by

Tang Yizhou and committed by
Jonathan Corbet
5dbbc145 dc6cdced

+4 -4
+4 -4
Documentation/scheduler/sched-domains.rst
··· 37 37 balancing workhorse, run_rebalance_domains()->rebalance_domains(), is then run 38 38 in softirq context (SCHED_SOFTIRQ). 39 39 40 - The latter function takes two arguments: the current CPU and whether it was idle 41 - at the time the scheduler_tick() happened and iterates over all sched domains 42 - our CPU is on, starting from its base domain and going up the ->parent chain. 43 - While doing that, it checks to see if the current domain has exhausted its 40 + The latter function takes two arguments: the runqueue of current CPU and whether 41 + the CPU was idle at the time the scheduler_tick() happened and iterates over all 42 + sched domains our CPU is on, starting from its base domain and going up the ->parent 43 + chain. While doing that, it checks to see if the current domain has exhausted its 44 44 rebalance interval. If so, it runs load_balance() on that domain. It then checks 45 45 the parent sched_domain (if it exists), and the parent of the parent and so 46 46 forth.