]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: cgroup: Simplify task self migration
authorMichal Koutný <mkoutny@suse.com>
Fri, 4 Oct 2019 10:57:41 +0000 (12:57 +0200)
committerTejun Heo <tj@kernel.org>
Mon, 7 Oct 2019 14:11:54 +0000 (07:11 -0700)
commit308003670f466c0a094f9e485ef4ceef549bfc1a
tree8bf68c62b3f6973e0ccc89da290522085855e11e
parent031be8916e0b1c9665cbdbe18379d2271b063e29
selftests: cgroup: Simplify task self migration

Simplify task migration by being oblivious about its PID during
migration. This allows to easily migrate individual threads as well.
This change brings no functional change and prepares grounds for thread
granularity migrating tests.

Signed-off-by: Michal Koutný <mkoutny@suse.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
tools/testing/selftests/cgroup/cgroup_util.c
tools/testing/selftests/cgroup/cgroup_util.h
tools/testing/selftests/cgroup/test_freezer.c