ANDROID: sched: Add vendor hook for uclamp_eff_value

Vendor may have their own behavior for determing uclamp value.

Bug: 170507972
Signed-off-by: Rick Yiu <rickyiu@google.com>
Change-Id: I33f8adc7240f6a44f16446421536047db2794989
This commit is contained in:
Rick Yiu
2021-01-07 13:55:19 +08:00
parent 9291f4b8d3
commit 4b88cf8524
3 changed files with 14 additions and 0 deletions

View File

@@ -268,6 +268,13 @@ DECLARE_HOOK(android_vh_set_wake_flags,
TP_PROTO(int *wake_flags, unsigned int *mode),
TP_ARGS(wake_flags, mode));
enum uclamp_id;
struct uclamp_se;
DECLARE_RESTRICTED_HOOK(android_rvh_uclamp_eff_value,
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);
/* macro versions of hooks are no longer required */
#endif /* _TRACE_HOOK_SCHED_H */