From 2511b508009918c4b20620cead2ef5dd48129069 Mon Sep 17 00:00:00 2001 From: Sascha Grunert Date: Tue, 21 Jan 2020 16:08:26 +0100 Subject: Use cgroupv2 super magic from golang.org/x/sys/unix We can use this constant from the already existing sys/unix package instead of defining it by our own. Signed-off-by: Sascha Grunert --- pkg/cgroups/cgroups.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'pkg/cgroups/cgroups.go') diff --git a/pkg/cgroups/cgroups.go b/pkg/cgroups/cgroups.go index 6b28b2759..96786223d 100644 --- a/pkg/cgroups/cgroups.go +++ b/pkg/cgroups/cgroups.go @@ -97,8 +97,7 @@ type controllerHandler interface { } const ( - cgroupRoot = "/sys/fs/cgroup" - _cgroup2SuperMagic = 0x63677270 + cgroupRoot = "/sys/fs/cgroup" // CPU is the cpu controller CPU = "cpu" // CPUAcct is the cpuacct controller -- cgit v1.2.3-54-g00ecf