Lines Matching defs:fits
5801 bool fits, uclamp_max_fits;
5804 * Check if the real util fits without any uclamp boost/cap applied.
5806 fits = fits_capacity(util, capacity);
5809 return fits;
5817 * pressure to skew the check whether it fits a CPU or not.
5858 * which is what we're enforcing here. A task always fits if
5872 fits = fits || uclamp_max_fits;
5889 * actual fitness value here. We only care if uclamp_max fits
5898 * need to take into account the boosted value fits the CPU without
5901 * Cases (a) and (b) are handled in the 'fits' variable already. We
5906 if (fits && (util < uclamp_min) &&
5910 return fits;
5919 * Return true only if the cpu fully fits the task requirements, which
8606 * A CPU that both fits the task and sits on a fully-idle SMT core is returned
8608 * its own "core", so the early return covers all fits-and-idle cases and the
8613 * ASYM_IDLE_UCLAMP_MISFIT -4 core Idle core; capacity fits
8622 * fits util + uclamp.
8624 * fits but uclamp_min misses
8631 * fits += ASYM_IDLE_CORE_BIAS rebases thread-tier ranks into the core tier:
8652 * the task fits. If no CPU is big enough, but there are idle ones, try to
8665 int fits, best_fits = ASYM_IDLE_THREAD_MISFIT;
8702 fits = util_fits_cpu(task_util, util_min, util_max, cpu);
8711 if (fits > 0 && preferred_core)
8717 else if (fits < 0)
8720 * fits > 0 implies we are not on a preferred core, but the util
8721 * fits CPU capacity. Set fits to ASYM_IDLE_THREAD_FITS
8725 * ASYM_IDLE_THREAD_UCLAMP_MISFIT - fits with the exception of UCLAMP_MIN
8726 * ASYM_IDLE_THREAD_FITS - fits with the exception of preferred_core
8728 else if (fits > 0)
8729 fits = ASYM_IDLE_THREAD_FITS;
8732 * If we are on a preferred core, translate the range of fits
8739 * fits > 0 for preferred_core need not be dealt with.
8742 fits += ASYM_IDLE_CORE_BIAS;
8745 * First, select CPU which fits better (lower is more preferred).
8748 if ((fits < best_fits) ||
8749 ((fits == best_fits) && (cpu_cap > best_cap))) {
8752 best_fits = fits;
8779 * Return true only if the cpu fully fits the task requirements
8809 * that the task fits with CPU's capacity.
9399 int fits, max_fits = -1;
9447 fits = util_fits_cpu(util, util_min, util_max, cpu);
9448 if (!fits)
9456 prev_fits = fits;
9457 } else if ((fits > max_fits) ||
9458 ((fits == max_fits) && ((long)cpu_cap > max_spare_cap))) {
9466 max_fits = fits;
9491 /* Current best energy cpu fits better */
12179 /* Check if task fits in the CPU */