Lines Matching refs:flags
27 if (!test_bit(CGRP_FROZEN, &cgrp->flags) && in cgroup_propagate_frozen()
28 test_bit(CGRP_FREEZE, &cgrp->flags) && in cgroup_propagate_frozen()
31 set_bit(CGRP_FROZEN, &cgrp->flags); in cgroup_propagate_frozen()
38 if (test_bit(CGRP_FROZEN, &cgrp->flags)) { in cgroup_propagate_frozen()
39 clear_bit(CGRP_FROZEN, &cgrp->flags); in cgroup_propagate_frozen()
63 frozen = test_bit(CGRP_FREEZE, &cgrp->flags) && in cgroup_update_frozen()
68 if (test_bit(CGRP_FROZEN, &cgrp->flags)) in cgroup_update_frozen()
71 set_bit(CGRP_FROZEN, &cgrp->flags); in cgroup_update_frozen()
74 if (!test_bit(CGRP_FROZEN, &cgrp->flags)) in cgroup_update_frozen()
77 clear_bit(CGRP_FROZEN, &cgrp->flags); in cgroup_update_frozen()
137 if (always_leave || !test_bit(CGRP_FREEZE, &cgrp->flags)) { in cgroup_leave_frozen()
157 unsigned long flags; in cgroup_freeze_task() local
160 if (!lock_task_sighand(task, &flags)) in cgroup_freeze_task()
171 unlock_task_sighand(task, &flags); in cgroup_freeze_task()
186 set_bit(CGRP_FREEZE, &cgrp->flags); in cgroup_do_freeze()
188 clear_bit(CGRP_FREEZE, &cgrp->flags); in cgroup_do_freeze()
202 if (task->flags & PF_KTHREAD) in cgroup_do_freeze()
230 if (task->flags & PF_KTHREAD) in cgroup_freezer_migrate_task()
237 if (!test_bit(CGRP_FREEZE, &src->flags) && in cgroup_freezer_migrate_task()
238 !test_bit(CGRP_FREEZE, &dst->flags) && in cgroup_freezer_migrate_task()
257 cgroup_freeze_task(task, test_bit(CGRP_FREEZE, &dst->flags)); in cgroup_freezer_migrate_task()
320 test_bit(CGRP_FROZEN, &cgrp->flags)); in cgroup_freeze()