Commit ef5f97a4 authored by Seth Hoenig's avatar Seth Hoenig
Browse files

wip functions for nonlinux

parent a34d6198
Showing with 7 additions and 2 deletions
+7 -2
......@@ -15,8 +15,8 @@ const (
// This is a read-only value.
var UseV2 = false
// NewCpusetManager creates a no-op CpusetManager for non-Linux operating systems.
func NewCpusetManager(string, hclog.Logger) CpusetManager {
// CreateCPUSetManager creates a no-op CpusetManager for non-Linux operating systems.
func CreateCPUSetManager(string, hclog.Logger) CpusetManager {
return new(NoopCpusetManager)
}
......@@ -29,3 +29,8 @@ func FindCgroupMountpointDir() (string, error) {
func GetCgroupParent(string) string {
return DefaultCgroupParent
}
// GetCPUsFromCgroup returns nothing for non-Linux operating systems.
func GetCPUsFromCgroup(string) ([]uint16, error) {
return nil, nil
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment