diff options
Diffstat (limited to 'src/core/cgroup.h')
-rw-r--r-- | src/core/cgroup.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/cgroup.h b/src/core/cgroup.h index be717ad877..2b19add799 100644 --- a/src/core/cgroup.h +++ b/src/core/cgroup.h @@ -71,6 +71,9 @@ struct CGroupContext { bool memory_accounting; unsigned long cpu_shares; + usec_t cpu_quota_per_sec_usec; + usec_t cpu_quota_usec; + usec_t cpu_quota_period_usec; unsigned long blockio_weight; LIST_HEAD(CGroupBlockIODeviceWeight, blockio_device_weights); @@ -97,6 +100,9 @@ void cgroup_context_free_device_allow(CGroupContext *c, CGroupDeviceAllow *a); void cgroup_context_free_blockio_device_weight(CGroupContext *c, CGroupBlockIODeviceWeight *w); void cgroup_context_free_blockio_device_bandwidth(CGroupContext *c, CGroupBlockIODeviceBandwidth *b); +usec_t cgroup_context_get_cpu_quota_usec(CGroupContext *c); +usec_t cgroup_context_get_cpu_quota_per_sec_usec(CGroupContext *c); + CGroupControllerMask unit_get_cgroup_mask(Unit *u); CGroupControllerMask unit_get_siblings_mask(Unit *u); CGroupControllerMask unit_get_members_mask(Unit *u); |