sched: walt: Register restricted trace hook for libunity fixup

Need restricted hook so that it can sleep.

Change-Id: I2b546f57f7ee58beed3dad84f201fd075fa0d21d
Signed-off-by: Shaleen Agrawal <shalagra@codeaurora.org>
This commit is contained in:
Shaleen Agrawal 2021-07-27 15:58:16 -07:00 committed by Rishabh Bhatnagar
parent 1a3d10c831
commit 1a9ac70efd

View File

@ -77,7 +77,7 @@ static bool is_sched_lib_based_app(pid_t pid)
return found;
}
static void android_vh_show_max_freq(void *unused, struct cpufreq_policy *policy,
static void android_rvh_show_max_freq(void *unused, struct cpufreq_policy *policy,
unsigned int *max_freq)
{
if (!cpuinfo_max_freq_cached)
@ -92,5 +92,5 @@ static void android_vh_show_max_freq(void *unused, struct cpufreq_policy *policy
void walt_fixup_init(void)
{
register_trace_android_vh_show_max_freq(android_vh_show_max_freq, NULL);
register_trace_android_rvh_show_max_freq(android_rvh_show_max_freq, NULL);
}