public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] sched: Return NULL when entity isn't a task
@ 2023-12-06  6:33 Yajun Deng
  2023-12-06  6:33 ` [PATCH v2 1/2] sched/fair: Return NULL when entity isn't a task in task_of() Yajun Deng
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Yajun Deng @ 2023-12-06  6:33 UTC (permalink / raw)
  To: mingo, peterz, juri.lelli, vincent.guittot, dietmar.eggemann,
	rostedt, bsegall, mgorman, bristot, vschneid
  Cc: linux-kernel, Yajun Deng

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-01-24  8:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-06  6:33 [PATCH v2 0/2] sched: Return NULL when entity isn't a task Yajun Deng
2023-12-06  6:33 ` [PATCH v2 1/2] sched/fair: Return NULL when entity isn't a task in task_of() Yajun Deng
2024-01-23  3:48   ` Steven Rostedt
2024-01-24  8:08     ` Yajun Deng
2023-12-06  6:34 ` [PATCH v2 2/2] sched/rt: Return NULL when rt entity isn't a task in rt_task_of() Yajun Deng
2024-01-23  3:19 ` [PATCH v2 0/2] sched: Return NULL when entity isn't a task Yajun Deng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox