Searched refs:system_tasks_max_scale (Results 1 – 4 of 4) sorted by relevance
/systemd-251/src/test/ |
D | test-util.c | 215 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/ |
D | limits-util.h | 10 uint64_t system_tasks_max_scale(uint64_t v, uint64_t max);
|
D | limits-util.c | 167 uint64_t system_tasks_max_scale(uint64_t v, uint64_t max) { in system_tasks_max_scale() function
|
/systemd-251/src/core/ |
D | cgroup.c | 57 return system_tasks_max_scale(tasks_max->value, tasks_max->scale); in tasks_max_resolve()
|