From 8961fd20e6e213bf967db90166e24d38da065807 Mon Sep 17 00:00:00 2001 From: Ma Shimiao Date: Wed, 1 Apr 2015 12:04:54 +0800 Subject: [PATCH] cgroups/systemd: Use unified subsystems Signed-off-by: Ma Shimiao --- cgroups/systemd/apply_systemd.go | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/cgroups/systemd/apply_systemd.go b/cgroups/systemd/apply_systemd.go index 85ee5db0..dea196bd 100644 --- a/cgroups/systemd/apply_systemd.go +++ b/cgroups/systemd/apply_systemd.go @@ -218,16 +218,7 @@ func (m *Manager) Apply(pid int) error { } paths := make(map[string]string) - for _, sysname := range []string{ - "devices", - "memory", - "cpu", - "cpuset", - "cpuacct", - "blkio", - "perf_event", - "freezer", - } { + for sysname := range subsystems { subsystemPath, err := getSubsystemPath(m.Cgroups, sysname) if err != nil { // Don't fail if a cgroup hierarchy was not found, just skip this subsystem