Lines Matching defs:fits
4961 bool fits, uclamp_max_fits;
4964 * Check if the real util fits without any uclamp boost/cap applied.
4966 fits = fits_capacity(util, capacity);
4969 return fits;
4977 * pressure to skew the check whether it fits a CPU or not.
5018 * which is what we're enforcing here. A task always fits if
5032 fits = fits || uclamp_max_fits;
5049 * actual fitness value here. We only care if uclamp_max fits
5058 * need to take into account the boosted value fits the CPU without
5061 * Cases (a) and (b) are handled in the 'fits' variable already. We
5066 if (fits && (util < uclamp_min) &&
5070 return fits;
5079 * Return true only if the cpu fully fits the task requirements, which
7659 * the task fits. If no CPU is big enough, but there are idle ones, try to
7666 int fits, best_fits = 0;
7683 fits = util_fits_cpu(task_util, util_min, util_max, cpu);
7685 /* This CPU fits with all requirements */
7686 if (fits > 0)
7692 else if (fits < 0)
7696 * First, select CPU which fits better (-1 being better than 0).
7699 if ((fits < best_fits) ||
7700 ((fits == best_fits) && (cpu_cap > best_cap))) {
7703 best_fits = fits;
7717 * Return true only if the cpu fully fits the task requirements
7737 * that the task fits with CPU's capacity.
8321 int fits, max_fits = -1;
8371 fits = util_fits_cpu(util, util_min, util_max, cpu);
8372 if (!fits)
8380 prev_fits = fits;
8381 } else if ((fits > max_fits) ||
8382 ((fits == max_fits) && ((long)cpu_cap > max_spare_cap))) {
8390 max_fits = fits;
8415 /* Current best energy cpu fits better */
10607 /* Check if task fits in the CPU */