cgroup_freezer: prepare freezer_change_state() for full hierarchy support
authorTejun Heo <tj@kernel.org>
Fri, 9 Nov 2012 17:12:30 +0000 (09:12 -0800)
committerTejun Heo <tj@kernel.org>
Fri, 9 Nov 2012 17:12:30 +0000 (09:12 -0800)
commit04a4ec32571e88c614b229824afec376d24cc035
tree47149b8d0c5673a1e4278ac4f0874296b3d19b10
parentbcd66c894ac994ef5d6fbbaa9a24506ffaf64fd4
cgroup_freezer: prepare freezer_change_state() for full hierarchy support

* Make freezer_change_state() take bool @freeze instead of enum
  freezer_state.

* Separate out freezer_apply_state() out of freezer_change_state().
  This makes freezer_change_state() a rather silly thin wrapper.  It
  will be filled with hierarchy handling later on.

This patch doesn't introduce any behavior change.

Signed-off-by: Tejun Heo <tj@kernel.org>
Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Reviewed-by: Michal Hocko <mhocko@suse.cz>
kernel/cgroup_freezer.c