[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <5443c895-b4bb-1297-400b-6a8ffd1d63b1@linux.alibaba.com>
Date: Tue, 10 May 2022 15:37:19 +0800
From: cruzzhao <cruzzhao@...ux.alibaba.com>
To: mingo@...hat.com, peterz@...radead.org, juri.lelli@...hat.com,
vincent.guittot@...aro.org, dietmar.eggemann@....com,
rostedt@...dmis.org, bsegall@...gle.com, mgorman@...e.de,
bristot@...hat.com
Cc: linux-kernel@...r.kernel.org
Subject: Re: [PATCH] sched/core: Optimize sched_core_next()
ping... Is this patch necessary?
在 2022/4/25 上午1:08, Cruz Zhao 写道:
> As there is __node_2_sc() defined before, just use it instead of
> container_of() in function sched_core_next().
>
> Signed-off-by: Cruz Zhao <CruzZhao@...ux.alibaba.com>
> ---
> kernel/sched/core.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/kernel/sched/core.c b/kernel/sched/core.c
> index d50d4dd..d3e3d6e 100644
> --- a/kernel/sched/core.c
> +++ b/kernel/sched/core.c
> @@ -284,7 +284,7 @@ static struct task_struct *sched_core_next(struct task_struct *p, unsigned long
> if (!node)
> return NULL;
>
> - p = container_of(node, struct task_struct, core_node);
> + p = __node_2_sc(node);
> if (p->core_cookie != cookie)
> return NULL;
>
Powered by blists - more mailing lists