X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fcore%2Fcgroup.h;h=d299872b1f4f6f9d6a83ed185d28d58a00d9d873;hp=be717ad8778a43c9a54e818843ba84791c53ccf7;hb=2968644080fd103062f070e83edd620e0a58c44d;hpb=bc432dc7eb62c5671f2b741a86a66393adb350dc diff --git a/src/core/cgroup.h b/src/core/cgroup.h index be717ad87..d299872b1 100644 --- a/src/core/cgroup.h +++ b/src/core/cgroup.h @@ -71,8 +71,11 @@ struct CGroupContext { bool memory_accounting; unsigned long cpu_shares; + unsigned long startup_cpu_shares; + usec_t cpu_quota_per_sec_usec; unsigned long blockio_weight; + unsigned long startup_blockio_weight; LIST_HEAD(CGroupBlockIODeviceWeight, blockio_device_weights); LIST_HEAD(CGroupBlockIODeviceBandwidth, blockio_device_bandwidths); @@ -89,7 +92,7 @@ struct CGroupContext { void cgroup_context_init(CGroupContext *c); void cgroup_context_done(CGroupContext *c); void cgroup_context_dump(CGroupContext *c, FILE* f, const char *prefix); -void cgroup_context_apply(CGroupContext *c, CGroupControllerMask mask, const char *path); +void cgroup_context_apply(CGroupContext *c, CGroupControllerMask mask, const char *path, ManagerState state); CGroupControllerMask cgroup_context_get_mask(CGroupContext *c);