summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/cgroup.c4
-rw-r--r--src/core/cgroup.h3
2 files changed, 5 insertions, 2 deletions
diff --git a/src/core/cgroup.c b/src/core/cgroup.c
index 1b2235d04..dd173e2a3 100644
--- a/src/core/cgroup.c
+++ b/src/core/cgroup.c
@@ -38,7 +38,7 @@
#include "stdio-util.h"
#include "string-table.h"
#include "string-util.h"
-//#include "virt.h"
+#include "virt.h"
#define CGROUP_CPU_QUOTA_PERIOD_USEC ((usec_t) 100 * USEC_PER_MSEC)
@@ -56,6 +56,7 @@ bool manager_owns_root_cgroup(Manager *m) {
return isempty(m->cgroup_root) || path_equal(m->cgroup_root, "/");
}
+#if 0 /// UNNEEDED by elogind
bool unit_has_root_cgroup(Unit *u) {
assert(u);
@@ -68,7 +69,6 @@ bool unit_has_root_cgroup(Unit *u) {
return unit_has_name(u, SPECIAL_ROOT_SLICE);
}
-#if 0 /// UNNEEDED by elogind
static void cgroup_compat_warn(void) {
static bool cgroup_compat_warned = false;
diff --git a/src/core/cgroup.h b/src/core/cgroup.h
index 79898613b..29e8cb5e2 100644
--- a/src/core/cgroup.h
+++ b/src/core/cgroup.h
@@ -216,7 +216,10 @@ int unit_reset_ip_accounting(Unit *u);
#endif // 0
bool manager_owns_root_cgroup(Manager *m);
+
+#if 0 /// UNNEEDED by elogind
bool unit_has_root_cgroup(Unit *u);
+#endif // 0
int manager_notify_cgroup_empty(Manager *m, const char *group);