* [PATCH] docs: scheduler: Fix outdated parameter of rebalance_domains
@ 2021-12-21 3:18 Tang Yizhou
2022-01-10 12:38 ` Tang Yizhou
2022-02-01 23:30 ` Jonathan Corbet
0 siblings, 2 replies; 3+ messages in thread
From: Tang Yizhou @ 2021-12-21 3:18 UTC (permalink / raw)
To: peterz, mingo, vincent.guittot, dietmar.eggemann, corbet
Cc: linux-kernel, linux-doc, zhengbin13, tangyeechou, Tang Yizhou
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>
---
Documentation/scheduler/sched-domains.rst | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/Documentation/scheduler/sched-domains.rst b/Documentation/scheduler/sched-domains.rst
index 84dcdcd2911c..e57ad28301bd 100644
--- a/Documentation/scheduler/sched-domains.rst
+++ b/Documentation/scheduler/sched-domains.rst
@@ -37,10 +37,10 @@ rebalancing event for the current runqueue has arrived. The actual load
balancing workhorse, run_rebalance_domains()->rebalance_domains(), is then run
in softirq context (SCHED_SOFTIRQ).
-The latter function takes two arguments: the current CPU and whether it was idle
-at the time the scheduler_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
+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
+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
the parent sched_domain (if it exists), and the parent of the parent and so
forth.
--
2.17.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] docs: scheduler: Fix outdated parameter of rebalance_domains
2021-12-21 3:18 [PATCH] docs: scheduler: Fix outdated parameter of rebalance_domains Tang Yizhou
@ 2022-01-10 12:38 ` Tang Yizhou
2022-02-01 23:30 ` Jonathan Corbet
1 sibling, 0 replies; 3+ messages in thread
From: Tang Yizhou @ 2022-01-10 12:38 UTC (permalink / raw)
To: peterz, mingo, vincent.guittot, dietmar.eggemann, corbet
Cc: linux-kernel, linux-doc, zhengbin13, tangyeechou
Friendly ping.
Any feedback?
On 2021/12/21 11:18, Tang Yizhou wrote:
> 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>
> ---
> Documentation/scheduler/sched-domains.rst | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/Documentation/scheduler/sched-domains.rst b/Documentation/scheduler/sched-domains.rst
> index 84dcdcd2911c..e57ad28301bd 100644
> --- a/Documentation/scheduler/sched-domains.rst
> +++ b/Documentation/scheduler/sched-domains.rst
> @@ -37,10 +37,10 @@ rebalancing event for the current runqueue has arrived. The actual load
> balancing workhorse, run_rebalance_domains()->rebalance_domains(), is then run
> in softirq context (SCHED_SOFTIRQ).
>
> -The latter function takes two arguments: the current CPU and whether it was idle
> -at the time the scheduler_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
> +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
> +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
> the parent sched_domain (if it exists), and the parent of the parent and so
> forth.
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] docs: scheduler: Fix outdated parameter of rebalance_domains
2021-12-21 3:18 [PATCH] docs: scheduler: Fix outdated parameter of rebalance_domains Tang Yizhou
2022-01-10 12:38 ` Tang Yizhou
@ 2022-02-01 23:30 ` Jonathan Corbet
1 sibling, 0 replies; 3+ messages in thread
From: Jonathan Corbet @ 2022-02-01 23:30 UTC (permalink / raw)
To: Tang Yizhou, peterz, mingo, vincent.guittot, dietmar.eggemann
Cc: linux-kernel, linux-doc, zhengbin13, tangyeechou, Tang Yizhou
Tang Yizhou <tangyizhou@huawei.com> writes:
> 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>
> ---
> Documentation/scheduler/sched-domains.rst | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/Documentation/scheduler/sched-domains.rst b/Documentation/scheduler/sched-domains.rst
> index 84dcdcd2911c..e57ad28301bd 100644
> --- a/Documentation/scheduler/sched-domains.rst
> +++ b/Documentation/scheduler/sched-domains.rst
> @@ -37,10 +37,10 @@ rebalancing event for the current runqueue has arrived. The actual load
> balancing workhorse, run_rebalance_domains()->rebalance_domains(), is then run
> in softirq context (SCHED_SOFTIRQ).
>
> -The latter function takes two arguments: the current CPU and whether it was idle
> -at the time the scheduler_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
> +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
> +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
> the parent sched_domain (if it exists), and the parent of the parent and so
> forth.
This seems to make sense. Applied, thanks.
jon
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-02-01 23:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-21 3:18 [PATCH] docs: scheduler: Fix outdated parameter of rebalance_domains Tang Yizhou
2022-01-10 12:38 ` Tang Yizhou
2022-02-01 23:30 ` Jonathan Corbet
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®