sched/walt: Fix in long running RT task detection

Ensure that long running RT task detection is set to a minimum
of 800ms.

Change-Id: I378c6b51ef9d417f9143e19e2938b625d1dd6a65
Signed-off-by: Sai Harshini Nimmala <quic_snimmala@quicinc.com>
This commit is contained in:
Sai Harshini Nimmala 2022-03-15 14:42:21 -07:00 committed by Rishabh Bhatnagar
parent ef1fadeb4b
commit ac78c5792b

View File

@ -61,6 +61,10 @@ int sched_long_running_rt_task_ms_handler(struct ctl_table *table, int write,
ret = proc_douintvec_minmax(table, write, buffer, lenp, ppos);
if (sysctl_sched_long_running_rt_task_ms > 0 &&
sysctl_sched_long_running_rt_task_ms < 800)
sysctl_sched_long_running_rt_task_ms = 800;
if (write && !long_running_rt_task_trace_rgstrd) {
register_trace_sched_switch(rt_task_arrival_marker, NULL);
register_trace_android_vh_scheduler_tick(long_running_rt_task_notifier, NULL);