Lines Matching refs:util
2524 * uclamp_rq_util_with - clamp @util with @rq and @p effective uclamp values.
2526 * @util: The util value to clamp.
2530 * Clamps the passed @util to the max(@rq, @p) effective uclamp values.
2532 * If sched_uclamp_used static key is disabled, then just return the util
2540 static __always_inline unsigned long uclamp_rq_util_with(struct rq *rq, unsigned long util, struct task_struct *p)
2546 return util;
2574 return clamp(util, min_util, max_util);
2595 static inline unsigned long uclamp_rq_util_with(struct rq *rq, unsigned long util, struct task_struct *p)
2597 return util;
2663 unsigned long util = READ_ONCE(rq->cfs.avg.util_avg);
2666 util = max_t(unsigned long, util, READ_ONCE(rq->cfs.avg.util_est.enqueued));
2669 return util;
2690 static inline unsigned long scale_irq_capacity(unsigned long util, unsigned long irq, unsigned long max)
2692 util *= (max - irq);
2693 util /= max;
2695 return util;
2703 static inline unsigned long scale_irq_capacity(unsigned long util, unsigned long irq, unsigned long max)
2705 return util;
2987 u64 util;
2995 util = rq->prev_runnable_sum << SCHED_CAPACITY_SHIFT;
2996 util = div_u64(util, sched_ravg_window);
2998 return (util >= capacity) ? capacity : util;