ANDROID: sched: Add vendor hook for uclamp_eff_get

Vendor may have their own behavior for determing uclamp value. Also
uclamp_eff_get() is used in uclamp_rq_inc_id() when task is enqueued,
and it is contained in uclamp_eff_value(), there is no much benefit to
hook uclamp_eff_value(), so remove the hook in uclamp_eff_value().

Bug: 170507972
Bug: 180859906
Signed-off-by: Rick Yiu <rickyiu@google.com>
Change-Id: Ibf7c043188a77c40baf5b4040b198a4197236089
This commit is contained in:
Rick Yiu
2021-03-12 16:33:30 +08:00
parent 5e1e3e9387
commit cc1f93cb20
3 changed files with 10 additions and 10 deletions

View File

@@ -270,10 +270,10 @@ DECLARE_HOOK(android_vh_set_wake_flags,
enum uclamp_id;
struct uclamp_se;
DECLARE_RESTRICTED_HOOK(android_rvh_uclamp_eff_value,
DECLARE_RESTRICTED_HOOK(android_rvh_uclamp_eff_get,
TP_PROTO(struct task_struct *p, enum uclamp_id clamp_id,
struct uclamp_se *uclamp_default, unsigned long *ret),
TP_ARGS(p, clamp_id, uclamp_default, ret), 1);
struct uclamp_se *uclamp_max, struct uclamp_se *uclamp_eff, int *ret),
TP_ARGS(p, clamp_id, uclamp_max, uclamp_eff, ret), 1);
/* macro versions of hooks are no longer required */