]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
cgroup: move cgroup files under kernel/cgroup/
authorTejun Heo <tj@kernel.org>
Tue, 27 Dec 2016 19:49:05 +0000 (14:49 -0500)
committerTejun Heo <tj@kernel.org>
Tue, 27 Dec 2016 19:49:05 +0000 (14:49 -0500)
They're growing to be too many and planned to get split further.  Move
them under their own directory.

 kernel/cgroup.c -> kernel/cgroup/cgroup.c
 kernel/cgroup_freezer.c -> kernel/cgroup/freezer.c
 kernel/cgroup_pids.c -> kernel/cgroup/pids.c
 kernel/cpuset.c -> kernel/cgroup/cpuset.c

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Acked-by: Zefan Li <lizefan@huawei.com>
kernel/Makefile
kernel/cgroup/Makefile [new file with mode: 0644]
kernel/cgroup/cgroup.c [moved from kernel/cgroup.c with 100% similarity]
kernel/cgroup/cpuset.c [moved from kernel/cpuset.c with 100% similarity]
kernel/cgroup/freezer.c [moved from kernel/cgroup_freezer.c with 100% similarity]
kernel/cgroup/pids.c [moved from kernel/cgroup_pids.c with 100% similarity]

index 12c679f769c6f82af6d65caf8f06d2707f86fb3f..b302b4731d16547a88e4ddc6db21e130ae821113 100644 (file)
@@ -64,10 +64,7 @@ obj-$(CONFIG_KEXEC) += kexec.o
 obj-$(CONFIG_KEXEC_FILE) += kexec_file.o
 obj-$(CONFIG_BACKTRACE_SELF_TEST) += backtracetest.o
 obj-$(CONFIG_COMPAT) += compat.o
-obj-$(CONFIG_CGROUPS) += cgroup.o
-obj-$(CONFIG_CGROUP_FREEZER) += cgroup_freezer.o
-obj-$(CONFIG_CGROUP_PIDS) += cgroup_pids.o
-obj-$(CONFIG_CPUSETS) += cpuset.o
+obj-$(CONFIG_CGROUPS) += cgroup/
 obj-$(CONFIG_UTS_NS) += utsname.o
 obj-$(CONFIG_USER_NS) += user_namespace.o
 obj-$(CONFIG_PID_NS) += pid_namespace.o
diff --git a/kernel/cgroup/Makefile b/kernel/cgroup/Makefile
new file mode 100644 (file)
index 0000000..4d561a5
--- /dev/null
@@ -0,0 +1,5 @@
+obj-y := cgroup.o
+
+obj-$(CONFIG_CGROUP_FREEZER) += freezer.o
+obj-$(CONFIG_CGROUP_PIDS) += pids.o
+obj-$(CONFIG_CPUSETS) += cpuset.o
similarity index 100%
rename from kernel/cgroup.c
rename to kernel/cgroup/cgroup.c
similarity index 100%
rename from kernel/cpuset.c
rename to kernel/cgroup/cpuset.c
similarity index 100%
rename from kernel/cgroup_pids.c
rename to kernel/cgroup/pids.c