Lines Matching refs:clamp_id
1451 uclamp_idle_value(struct rq *rq, enum uclamp_id clamp_id, in uclamp_idle_value() argument
1459 if (clamp_id == UCLAMP_MAX) { in uclamp_idle_value()
1467 static inline void uclamp_idle_reset(struct rq *rq, enum uclamp_id clamp_id, in uclamp_idle_reset() argument
1474 uclamp_rq_set(rq, clamp_id, clamp_value); in uclamp_idle_reset()
1478 unsigned int uclamp_rq_max_value(struct rq *rq, enum uclamp_id clamp_id, in uclamp_rq_max_value() argument
1481 struct uclamp_bucket *bucket = rq->uclamp[clamp_id].bucket; in uclamp_rq_max_value()
1495 return uclamp_idle_value(rq, clamp_id, clamp_value); in uclamp_rq_max_value()
1526 uclamp_tg_restrict(struct task_struct *p, enum uclamp_id clamp_id) in uclamp_tg_restrict() argument
1529 struct uclamp_se uc_req = p->uclamp_req[clamp_id]; in uclamp_tg_restrict()
1561 uclamp_eff_get(struct task_struct *p, enum uclamp_id clamp_id) in uclamp_eff_get() argument
1563 struct uclamp_se uc_req = uclamp_tg_restrict(p, clamp_id); in uclamp_eff_get()
1564 struct uclamp_se uc_max = uclamp_default[clamp_id]; in uclamp_eff_get()
1573 unsigned long uclamp_eff_value(struct task_struct *p, enum uclamp_id clamp_id) in uclamp_eff_value() argument
1578 if (p->uclamp[clamp_id].active) in uclamp_eff_value()
1579 return (unsigned long)p->uclamp[clamp_id].value; in uclamp_eff_value()
1581 uc_eff = uclamp_eff_get(p, clamp_id); in uclamp_eff_value()
1597 enum uclamp_id clamp_id) in uclamp_rq_inc_id() argument
1599 struct uclamp_rq *uc_rq = &rq->uclamp[clamp_id]; in uclamp_rq_inc_id()
1600 struct uclamp_se *uc_se = &p->uclamp[clamp_id]; in uclamp_rq_inc_id()
1606 p->uclamp[clamp_id] = uclamp_eff_get(p, clamp_id); in uclamp_rq_inc_id()
1612 uclamp_idle_reset(rq, clamp_id, uc_se->value); in uclamp_rq_inc_id()
1621 if (uc_se->value > uclamp_rq_get(rq, clamp_id)) in uclamp_rq_inc_id()
1622 uclamp_rq_set(rq, clamp_id, uc_se->value); in uclamp_rq_inc_id()
1635 enum uclamp_id clamp_id) in uclamp_rq_dec_id() argument
1637 struct uclamp_rq *uc_rq = &rq->uclamp[clamp_id]; in uclamp_rq_dec_id()
1638 struct uclamp_se *uc_se = &p->uclamp[clamp_id]; in uclamp_rq_dec_id()
1688 rq_clamp = uclamp_rq_get(rq, clamp_id); in uclamp_rq_dec_id()
1695 bkt_clamp = uclamp_rq_max_value(rq, clamp_id, uc_se->value); in uclamp_rq_dec_id()
1696 uclamp_rq_set(rq, clamp_id, bkt_clamp); in uclamp_rq_dec_id()
1702 enum uclamp_id clamp_id; in uclamp_rq_inc() local
1719 for_each_clamp_id(clamp_id) in uclamp_rq_inc()
1720 uclamp_rq_inc_id(rq, p, clamp_id); in uclamp_rq_inc()
1729 enum uclamp_id clamp_id; in uclamp_rq_dec() local
1746 for_each_clamp_id(clamp_id) in uclamp_rq_dec()
1747 uclamp_rq_dec_id(rq, p, clamp_id); in uclamp_rq_dec()
1751 enum uclamp_id clamp_id) in uclamp_rq_reinc_id() argument
1753 if (!p->uclamp[clamp_id].active) in uclamp_rq_reinc_id()
1756 uclamp_rq_dec_id(rq, p, clamp_id); in uclamp_rq_reinc_id()
1757 uclamp_rq_inc_id(rq, p, clamp_id); in uclamp_rq_reinc_id()
1763 if (clamp_id == UCLAMP_MAX && (rq->uclamp_flags & UCLAMP_FLAG_IDLE)) in uclamp_rq_reinc_id()
1770 enum uclamp_id clamp_id; in uclamp_update_active() local
1790 for_each_clamp_id(clamp_id) in uclamp_update_active()
1791 uclamp_rq_reinc_id(rq, p, clamp_id); in uclamp_update_active()
1921 enum uclamp_id clamp_id; in uclamp_fork() local
1927 for_each_clamp_id(clamp_id) in uclamp_fork()
1928 p->uclamp[clamp_id].active = false; in uclamp_fork()
1933 for_each_clamp_id(clamp_id) { in uclamp_fork()
1934 uclamp_se_set(&p->uclamp_req[clamp_id], in uclamp_fork()
1935 uclamp_none(clamp_id), false); in uclamp_fork()
1946 enum uclamp_id clamp_id; in init_uclamp_rq() local
1949 for_each_clamp_id(clamp_id) { in init_uclamp_rq()
1950 uc_rq[clamp_id] = (struct uclamp_rq) { in init_uclamp_rq()
1951 .value = uclamp_none(clamp_id) in init_uclamp_rq()
1961 enum uclamp_id clamp_id; in init_uclamp() local
1967 for_each_clamp_id(clamp_id) { in init_uclamp()
1968 uclamp_se_set(&init_task.uclamp_req[clamp_id], in init_uclamp()
1969 uclamp_none(clamp_id), false); in init_uclamp()
1974 for_each_clamp_id(clamp_id) { in init_uclamp()
1975 uclamp_default[clamp_id] = uc_max; in init_uclamp()
1977 root_task_group.uclamp_req[clamp_id] = uc_max; in init_uclamp()
1978 root_task_group.uclamp[clamp_id] = uc_max; in init_uclamp()
8795 enum uclamp_id clamp_id; in alloc_uclamp_sched_group() local
8797 for_each_clamp_id(clamp_id) { in alloc_uclamp_sched_group()
8798 uclamp_se_set(&tg->uclamp_req[clamp_id], in alloc_uclamp_sched_group()
8799 uclamp_none(clamp_id), false); in alloc_uclamp_sched_group()
8800 tg->uclamp[clamp_id] = parent->uclamp[clamp_id]; in alloc_uclamp_sched_group()
9090 enum uclamp_id clamp_id; in cpu_util_update_eff() local
9100 for_each_clamp_id(clamp_id) { in cpu_util_update_eff()
9102 eff[clamp_id] = css_tg(css)->uclamp_req[clamp_id].value; in cpu_util_update_eff()
9105 eff[clamp_id] > uc_parent[clamp_id].value) { in cpu_util_update_eff()
9106 eff[clamp_id] = uc_parent[clamp_id].value; in cpu_util_update_eff()
9115 for_each_clamp_id(clamp_id) { in cpu_util_update_eff()
9116 if (eff[clamp_id] == uc_se[clamp_id].value) in cpu_util_update_eff()
9118 uc_se[clamp_id].value = eff[clamp_id]; in cpu_util_update_eff()
9119 uc_se[clamp_id].bucket_id = uclamp_bucket_id(eff[clamp_id]); in cpu_util_update_eff()
9120 clamps |= (0x1 << clamp_id); in cpu_util_update_eff()
9177 enum uclamp_id clamp_id) in cpu_uclamp_write() argument
9192 if (tg->uclamp_req[clamp_id].value != req.util) in cpu_uclamp_write()
9193 uclamp_se_set(&tg->uclamp_req[clamp_id], req.util, false); in cpu_uclamp_write()
9199 tg->uclamp_pct[clamp_id] = req.percent; in cpu_uclamp_write()
9222 enum uclamp_id clamp_id) in cpu_uclamp_print() argument
9231 util_clamp = tg->uclamp_req[clamp_id].value; in cpu_uclamp_print()
9239 percent = tg->uclamp_pct[clamp_id]; in cpu_uclamp_print()