[PATCH 120/415] sched: Factor out cgroup weight conversion functions