Skip to content

Commit c0c9f9e

Browse files
committed
common/pkg/cgroups: Remove unused cpuset handler
The cpuset handler only had an empty Stat method that returned nil, providing no functionality. Remove the handler entirely along with the unused CPUset and CPUAcct controller constants which were remnants from cgroups v1. Signed-off-by: Lokesh Mandvekar <[email protected]>
1 parent 50673b7 commit c0c9f9e

File tree

2 files changed

+0
-24
lines changed

2 files changed

+0
-24
lines changed

common/pkg/cgroups/cgroups_linux.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,6 @@ const (
5050
cgroupRoot = "/sys/fs/cgroup"
5151
// CPU is the cpu controller.
5252
CPU = "cpu"
53-
// CPUAcct is the cpuacct controller.
54-
CPUAcct = "cpuacct"
55-
// CPUset is the cpuset controller.
56-
CPUset = "cpuset"
5753
// Memory is the memory controller.
5854
Memory = "memory"
5955
// Pids is the pids controller.
@@ -67,7 +63,6 @@ var handlers map[string]controllerHandler
6763
func init() {
6864
handlers = map[string]controllerHandler{
6965
CPU: getCPUHandler(),
70-
CPUset: getCpusetHandler(),
7166
Memory: getMemoryHandler(),
7267
Pids: getPidsHandler(),
7368
Blkio: getBlkioHandler(),

common/pkg/cgroups/cpuset_linux.go

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)