Home
last modified time | relevance | path

Searched refs:system_tasks_max_scale (Results 1 – 4 of 4) sorted by relevance

/systemd-251/src/test/
Dtest-util.c215 TEST(system_tasks_max_scale) { in TEST() argument
220 assert_se(system_tasks_max_scale(0, 100) == 0); in TEST()
221 assert_se(system_tasks_max_scale(100, 100) == t); in TEST()
223 assert_se(system_tasks_max_scale(0, 1) == 0); in TEST()
224 assert_se(system_tasks_max_scale(1, 1) == t); in TEST()
225 assert_se(system_tasks_max_scale(2, 1) == 2*t); in TEST()
227 assert_se(system_tasks_max_scale(0, 2) == 0); in TEST()
228 assert_se(system_tasks_max_scale(1, 2) == t/2); in TEST()
229 assert_se(system_tasks_max_scale(2, 2) == t); in TEST()
230 assert_se(system_tasks_max_scale(3, 2) == (3*t)/2); in TEST()
[all …]
/systemd-251/src/basic/
Dlimits-util.h10 uint64_t system_tasks_max_scale(uint64_t v, uint64_t max);
Dlimits-util.c167 uint64_t system_tasks_max_scale(uint64_t v, uint64_t max) { in system_tasks_max_scale() function
/systemd-251/src/core/
Dcgroup.c57 return system_tasks_max_scale(tasks_max->value, tasks_max->scale); in tasks_max_resolve()