Lines Matching refs:shares
975 static void cgroup_apply_legacy_cpu_shares(Unit *u, uint64_t shares) { in cgroup_apply_legacy_cpu_shares() argument
978 xsprintf(buf, "%" PRIu64 "\n", shares); in cgroup_apply_legacy_cpu_shares()
997 static uint64_t cgroup_cpu_shares_to_weight(uint64_t shares) { in cgroup_cpu_shares_to_weight() argument
998 return CLAMP(shares * CGROUP_WEIGHT_DEFAULT / CGROUP_CPU_SHARES_DEFAULT, in cgroup_cpu_shares_to_weight()
1400 uint64_t shares; in cgroup_context_apply() local
1402 shares = cgroup_context_cpu_shares(c, state); in cgroup_context_apply()
1403 weight = cgroup_cpu_shares_to_weight(shares); in cgroup_context_apply()
1406 shares, weight, path); in cgroup_context_apply()
1414 uint64_t shares; in cgroup_context_apply() local
1420 shares = cgroup_cpu_weight_to_shares(weight); in cgroup_context_apply()
1423 weight, shares, path); in cgroup_context_apply()
1425 shares = cgroup_context_cpu_shares(c, state); in cgroup_context_apply()
1427 shares = CGROUP_CPU_SHARES_DEFAULT; in cgroup_context_apply()
1429 cgroup_apply_legacy_cpu_shares(u, shares); in cgroup_context_apply()