]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sched_ext: Improve comment on idle_sched_class exception in scx_task_iter_next_locked()
authorTejun Heo <tj@kernel.org>
Tue, 6 Aug 2024 19:40:11 +0000 (09:40 -1000)
committerTejun Heo <tj@kernel.org>
Tue, 6 Aug 2024 19:40:11 +0000 (09:40 -1000)
commit9390a923e109f85b242bf676dc5bc81958d447fa
treeb889e0c4c8a09c040e5689936dca37386d8488c7
parenta735d43c7f85d112a6aefd72973188d0626e4464
sched_ext: Improve comment on idle_sched_class exception in scx_task_iter_next_locked()

scx_task_iter_next_locked() skips tasks whose sched_class is
idle_sched_class. While it has a short comment explaining why it's testing
the sched_class directly isntead of using is_idle_task(), the comment
doesn't sufficiently explain what's going on and why. Improve the comment.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Acked-by: David Vernet <void@manifault.com>
kernel/sched/ext.c