Lines Matching refs:fits

4979 	bool fits, uclamp_max_fits;
4982 * Check if the real util fits without any uclamp boost/cap applied.
4984 fits = fits_capacity(util, capacity);
4987 return fits;
4995 * pressure to skew the check whether it fits a CPU or not.
5037 * which is what we're enforcing here. A task always fits if
5051 fits = fits || uclamp_max_fits;
5068 * actual fitness value here. We only care if uclamp_max fits
5077 * need to take into account the boosted value fits the CPU without
5080 * Cases (a) and (b) are handled in the 'fits' variable already. We
5085 if (fits && (util < uclamp_min) && (uclamp_min > capacity_orig_thermal))
5088 return fits;
5097 * Return true only if the cpu fully fits the task requirements, which
7538 * the task fits. If no CPU is big enough, but there are idle ones, try to
7545 int fits, best_fits = 0;
7565 fits = util_fits_cpu(task_util, util_min, util_max, cpu);
7567 /* This CPU fits with all requirements */
7568 if (fits > 0)
7574 else if (fits < 0)
7578 * First, select CPU which fits better (-1 being better than 0).
7581 if ((fits < best_fits) ||
7582 ((fits == best_fits) && (cpu_cap > best_cap))) {
7585 best_fits = fits;
7599 * Return true only if the cpu fully fits the task requirements
7619 * that the task fits with cpu's capacity.
8107 int fits, max_fits = -1;
8158 fits = util_fits_cpu(util, util_min, util_max, cpu);
8159 if (!fits)
8167 prev_fits = fits;
8168 } else if ((fits > max_fits) ||
8169 ((fits == max_fits) && ((long)cpu_cap > max_spare_cap))) {
8177 max_fits = fits;
8202 /* Current best energy cpu fits better */
10506 /* Check if task fits in the CPU */