X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fbasic%2Fcgroup-util.c;h=08259fcfc5dfcdfe305e808860a2b9aa39c76241;hb=d1325d57413c007e17847074c70005c40e32bc9d;hp=ec42e258ab5728b07e08203482c957d534af4c8f;hpb=f6a95fdea68174e678daf94ebe4c2753e7b97761;p=elogind.git diff --git a/src/basic/cgroup-util.c b/src/basic/cgroup-util.c index ec42e258a..08259fcfc 100644 --- a/src/basic/cgroup-util.c +++ b/src/basic/cgroup-util.c @@ -2141,6 +2141,8 @@ int cg_unified(void) { return unified_cache; } +/// UNNEEDED by elogind +#if 0 void cg_unified_flush(void) { unified_cache = -1; } @@ -2187,6 +2189,7 @@ int cg_enable_everywhere(CGroupMask supported, CGroupMask mask, const char *p) { return 0; } +#endif // 0 bool cg_is_unified_wanted(void) { static thread_local int wanted = -1; @@ -2220,9 +2223,12 @@ bool cg_is_unified_wanted(void) { } } +/// UNNEEDED by elogind +#if 0 bool cg_is_legacy_wanted(void) { return !cg_is_unified_wanted(); } +#endif // 0 static const char *cgroup_controller_table[_CGROUP_CONTROLLER_MAX] = { [CGROUP_CONTROLLER_CPU] = "cpu",