diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-05-22 11:53:12 +0900 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-05-22 11:53:12 +0900 |
commit | 9a0549093332880df47c4218209ce126b8586835 (patch) | |
tree | 3f929d8ef12b580f5c6ed91b7316bbbac4d4a299 /src/core/unit.c | |
parent | 609e002e78e79ef2bf9d6a6ea22bda215abbbb14 (diff) |
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.
Diffstat (limited to 'src/core/unit.c')
-rw-r--r-- | src/core/unit.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/core/unit.c b/src/core/unit.c index 99ee709efd..3f862aa4c4 100644 --- a/src/core/unit.c +++ b/src/core/unit.c @@ -121,7 +121,6 @@ static void unit_init(Unit *u) { cc->cpu_accounting = u->manager->default_cpu_accounting; cc->blockio_accounting = u->manager->default_blockio_accounting; cc->memory_accounting = u->manager->default_memory_accounting; - cc->cpu_quota_period_usec = u->manager->default_cpu_quota_period_usec; } ec = unit_get_exec_context(u); |