Lines Matching defs:sum
305 * A weight of a cfs_rq is the sum of weights of which entities
496 * This is part of a global counter where only the total sum
2903 unsigned long i, sum = 0;
2906 sum += cpu_rq(i)->nr_running;
2908 return sum;
2913 unsigned long i, sum = 0;
2916 sum += cpu_rq(i)->nr_uninterruptible;
2922 if (unlikely((long)sum < 0))
2923 sum = 0;
2925 return sum;
2931 unsigned long long sum = 0;
2934 sum += cpu_rq(i)->nr_switches;
2936 return sum;
2941 unsigned long i, sum = 0;
2944 sum += atomic_read(&cpu_rq(i)->nr_iowait);
2946 return sum;
3426 * In case the task is currently running, return the sum plus current's
5758 * to keep the global sum constant after CPU-down:
8606 unsigned long total, sum = 0;
8638 * The sum of our children's runtime should not exceed our own.
8649 sum += to_ratio(period, runtime);
8652 if (sum > total)