[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20231201022704.3526377-1-yajun.deng@linux.dev>
Date: Fri, 1 Dec 2023 10:27:02 +0800
From: Yajun Deng <yajun.deng@...ux.dev>
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, vschneid@...hat.com
Cc: linux-kernel@...r.kernel.org, Yajun Deng <yajun.deng@...ux.dev>
Subject: [PATCH 0/2] sched: Return NULL when entity isn't a task
If the entity isn't a task, return the task struct is meaningless.
Return NULL when entity isn't a task that makes the code more concise.
Yajun Deng (2):
sched/fair: Return NULL when entity isn't a task in task_of()
sched/rt: Return NULL when rt entity isn't a task in rt_task_of()
kernel/sched/fair.c | 50 +++++++++++++++++------------------
kernel/sched/rt.c | 62 ++++++++++++--------------------------------
kernel/sched/sched.h | 4 ++-
3 files changed, 44 insertions(+), 72 deletions(-)
--
2.25.1
Powered by blists - more mailing lists