summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorSven Eden <yamakuzure@gmx.net>2018-06-05 19:08:31 +0200
committerSven Eden <yamakuzure@gmx.net>2018-06-05 19:08:54 +0200
commit4ecaac69d8ee3f5b7f3949b144ba51e576540c89 (patch)
treeccc08e9a44f189780c90cd99edebe81a16635a61 /src/core
parent4bb25b978ca1a43ea28db5b18de2b2fb02d58268 (diff)
Prep v238: Uncomment now needed headers and unmask now needed functions in src/core (2/6)
Diffstat (limited to 'src/core')
-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);