[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20231206063400.3206346-1-yajun.deng@linux.dev>
Date: Wed, 6 Dec 2023 14:33:58 +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 v2 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.
v1 -> v2:
fix 'struct rt_rq' no member named 'highest_prio'.
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 | 60 +++++++++++++-------------------------------
kernel/sched/sched.h | 4 ++-
3 files changed, 44 insertions(+), 70 deletions(-)
--
2.25.1
Powered by blists - more mailing lists