chiark / gitweb /
core: add cgroup CPU controller support on the unified hierarchy
[elogind.git] / src / core / cgroup.h
index c3b87bfc5ce5249b6c49013caf1ebd8fb501fa0f..3bcf6868137b3bb07d2143753fe4a7ab439454e9 100644 (file)
@@ -90,6 +90,10 @@ struct CGroupContext {
         bool tasks_accounting;
 
         /* For unified hierarchy */
+        uint64_t cpu_weight;
+        uint64_t startup_cpu_weight;
+        usec_t cpu_quota_per_sec_usec;
+
         uint64_t io_weight;
         uint64_t startup_io_weight;
         LIST_HEAD(CGroupIODeviceWeight, io_device_weights);
@@ -102,7 +106,6 @@ struct CGroupContext {
         /* For legacy hierarchies */
         uint64_t cpu_shares;
         uint64_t startup_cpu_shares;
-        usec_t cpu_quota_per_sec_usec;
 
         uint64_t blockio_weight;
         uint64_t startup_blockio_weight;