mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-26 23:38:31 +00:00
cgroups: remove unused SystemdCgroup variable and accessor/mutators
Since we are now detecting, no longer to keep this state. Signed-off-by: Eric Ernsteernst <eric@amperecomputing.com> (forward port of https://github.com/kata-containers/runtime/pull/2817) Signed-off-by: Francesco Giudici <fgiudici@redhat.com>
This commit is contained in:
parent
234d53b6df
commit
a3e35e7e92
@ -53,9 +53,6 @@ const (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
// If set to true, expects cgroupsPath to be of form "slice:prefix:name", otherwise cgroups creation will fail
|
|
||||||
systemdCgroup *bool
|
|
||||||
|
|
||||||
cgroupsLogger = logrus.WithField("source", "virtcontainers/pkg/cgroups")
|
cgroupsLogger = logrus.WithField("source", "virtcontainers/pkg/cgroups")
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -66,18 +63,6 @@ func SetLogger(logger *logrus.Entry) {
|
|||||||
cgroupsLogger = logger.WithFields(fields)
|
cgroupsLogger = logger.WithFields(fields)
|
||||||
}
|
}
|
||||||
|
|
||||||
func EnableSystemdCgroup() {
|
|
||||||
systemd := true
|
|
||||||
systemdCgroup = &systemd
|
|
||||||
}
|
|
||||||
|
|
||||||
func UseSystemdCgroup() bool {
|
|
||||||
if systemdCgroup != nil {
|
|
||||||
return *systemdCgroup
|
|
||||||
}
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
|
|
||||||
// returns the list of devices that a hypervisor may need
|
// returns the list of devices that a hypervisor may need
|
||||||
func hypervisorDevices() []specs.LinuxDeviceCgroup {
|
func hypervisorDevices() []specs.LinuxDeviceCgroup {
|
||||||
devices := []specs.LinuxDeviceCgroup{}
|
devices := []specs.LinuxDeviceCgroup{}
|
||||||
|
Loading…
Reference in New Issue
Block a user