All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] sched: Return NULL when entity isn't a task
@ 2023-12-01  2:27 Yajun Deng
  2023-12-01  2:27 ` [PATCH 1/2] sched/fair: Return NULL when entity isn't a task in task_of() Yajun Deng
  2023-12-01  2:27 ` [PATCH 2/2] sched/rt: Return NULL when rt entity isn't a task in rt_task_of() Yajun Deng
  0 siblings, 2 replies; 5+ messages in thread
From: Yajun Deng @ 2023-12-01  2:27 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.

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


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

end of thread, other threads:[~2023-12-06  6:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-01  2:27 [PATCH 0/2] sched: Return NULL when entity isn't a task Yajun Deng
2023-12-01  2:27 ` [PATCH 1/2] sched/fair: Return NULL when entity isn't a task in task_of() Yajun Deng
2023-12-01  2:27 ` [PATCH 2/2] sched/rt: Return NULL when rt entity isn't a task in rt_task_of() Yajun Deng
2023-12-06  4:13   ` kernel test robot
2023-12-06  6:29   ` kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.