diff --git a/pkg/util/cgroup/common/cgroup_unsupported.go b/pkg/util/cgroup/common/cgroup_unsupported.go index 85151900f..90bf40030 100644 --- a/pkg/util/cgroup/common/cgroup_unsupported.go +++ b/pkg/util/cgroup/common/cgroup_unsupported.go @@ -23,10 +23,6 @@ import ( "fmt" ) -func IsCgroup2UnifiedMode() bool { - return false -} - func ReadTasksFile(file string) ([]string, error) { return []string{}, fmt.Errorf("unsupported write file") } @@ -42,3 +38,7 @@ func WriteFileIfChange(dir, file, data string) (error, bool, string) { func IsCPUIdleSupported() bool { return false } + +func CheckCgroup2UnifiedMode() bool { + return false +}