Searched refs:clamp_id (Results 1 – 3 of 3) sorted by relevance
/linux-6.12.1/kernel/sched/ |
D | core.c | 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 [all …]
|
D | syscalls.c | 387 enum uclamp_id clamp_id, in uclamp_reset() argument 396 if (clamp_id == UCLAMP_MIN && in uclamp_reset() 402 if (clamp_id == UCLAMP_MAX && in uclamp_reset() 414 enum uclamp_id clamp_id; in __setscheduler_uclamp() local 416 for_each_clamp_id(clamp_id) { in __setscheduler_uclamp() 417 struct uclamp_se *uc_se = &p->uclamp_req[clamp_id]; in __setscheduler_uclamp() 420 if (!uclamp_reset(attr, clamp_id, uc_se)) in __setscheduler_uclamp() 427 if (unlikely(rt_task(p) && clamp_id == UCLAMP_MIN)) in __setscheduler_uclamp() 430 value = uclamp_none(clamp_id); in __setscheduler_uclamp()
|
D | sched.h | 3333 unsigned long uclamp_eff_value(struct task_struct *p, enum uclamp_id clamp_id); 3336 enum uclamp_id clamp_id) in uclamp_rq_get() argument 3338 return READ_ONCE(rq->uclamp[clamp_id].value); in uclamp_rq_get() 3341 static inline void uclamp_rq_set(struct rq *rq, enum uclamp_id clamp_id, in uclamp_rq_set() argument 3344 WRITE_ONCE(rq->uclamp[clamp_id].value, value); in uclamp_rq_set() 3380 #define for_each_clamp_id(clamp_id) \ argument 3381 for ((clamp_id) = 0; (clamp_id) < UCLAMP_CNT; (clamp_id)++) 3386 static inline unsigned int uclamp_none(enum uclamp_id clamp_id) in uclamp_none() argument 3388 if (clamp_id == UCLAMP_MIN) in uclamp_none() 3412 uclamp_eff_value(struct task_struct *p, enum uclamp_id clamp_id) in uclamp_eff_value() argument [all …]
|