From 9a0549093332880df47c4218209ce126b8586835 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 22 May 2014 11:53:12 +0900 Subject: cgroups: simplify CPUQuota= logic Only accept cpu quota values in percentages, get rid of period definition. It's not clear whether the CFS period controllable per-cgroup even has a future in the kernel, hence let's simplify all this, hardcode the period to 100ms and only accept percentage based quota values. --- src/core/cgroup.h | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/core/cgroup.h') diff --git a/src/core/cgroup.h b/src/core/cgroup.h index 44482c508..d299872b1 100644 --- a/src/core/cgroup.h +++ b/src/core/cgroup.h @@ -73,8 +73,6 @@ struct CGroupContext { unsigned long cpu_shares; unsigned long startup_cpu_shares; usec_t cpu_quota_per_sec_usec; - usec_t cpu_quota_usec; - usec_t cpu_quota_period_usec; unsigned long blockio_weight; unsigned long startup_blockio_weight; @@ -102,9 +100,6 @@ 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); -- cgit v1.2.3