chiark / gitweb /
Prep v233: Unmask now needed functions in src/basic
[elogind.git] / src / basic / cgroup-util.c
index ff9367e8cd81773d76e53a7e68b59959e48d5072..40e09d6f90605741351531363fe6a208ec3adae9 100644 (file)
@@ -2474,7 +2474,13 @@ int cg_unified_controller(const char *controller) {
 }
 
 int cg_all_unified(void) {
-        return cg_unified_controller(NULL);
+        int r;
+
+        r = cg_unified_update();
+        if (r < 0)
+                return r;
+
+        return unified_cache >= CGROUP_UNIFIED_ALL;
 }
 
 #if 0 /// UNNEEDED by elogind