OSDN Git Service

cgroup/cpuset: simplify the percpu kthreads check in update_tasks_cpumask()
authorMiaohe Lin <linmiaohe@huawei.com>
Tue, 4 Jul 2023 11:30:49 +0000 (19:30 +0800)
committerTejun Heo <tj@kernel.org>
Mon, 10 Jul 2023 20:24:56 +0000 (10:24 -1000)
commita453be9725a1aa3f602f5b4c66eefd1fb4ba7c44
tree1f89c9c6bd603d1bccc47411bdf230edffc1e67e
parent1299eb2b0ad5812dd6e5ea5b631da61f9e791bb3
cgroup/cpuset: simplify the percpu kthreads check in update_tasks_cpumask()

kthread_is_per_cpu() can be called directly without checking whether
PF_KTHREAD is set in task->flags. So remove PF_KTHREAD check to make
code more concise.

Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: Waiman Long <longman@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/cpuset.c