mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 03:27:03 +02:00
sched/walt: Deprecate RT task throttling
Deprecate RT thottling mechanism in lieu of new feature that handles long running RT tasks. Change-Id: I1137c6deefc61bc311deac66788a06201e64146e Signed-off-by: Sai Harshini Nimmala <quic_snimmala@quicinc.com>
This commit is contained in:
parent
e27237ebec
commit
e20d764ffa
|
|
@ -4210,23 +4210,6 @@ static void android_rvh_build_perf_domains(void *unused, bool *eas_check)
|
|||
*eas_check = true;
|
||||
}
|
||||
|
||||
static void dump_throttled_rt_tasks(void *unused, int cpu, u64 clock,
|
||||
ktime_t rt_period, u64 rt_runtime, s64 rt_period_timer_expires)
|
||||
{
|
||||
printk_deferred("sched: RT throttling activated for cpu %d\n", cpu);
|
||||
printk_deferred("rt_period_timer: expires=%lld now=%llu rt_time=%llu runtime=%llu period=%llu\n",
|
||||
rt_period_timer_expires, ktime_get_ns(),
|
||||
task_rq(current)->rt.rt_time, rt_runtime, rt_period);
|
||||
printk_deferred("potential CPU hogs:\n");
|
||||
#ifdef CONFIG_SCHED_INFO
|
||||
if (sched_info_on())
|
||||
printk_deferred("current %s (%d) is running for %llu nsec\n",
|
||||
current->comm, current->pid,
|
||||
clock - current->sched_info.last_arrival);
|
||||
#endif
|
||||
BUG_ON(sysctl_sched_bug_on_rt_throttle);
|
||||
}
|
||||
|
||||
static void android_rvh_set_cpus_allowed_ptr_locked(void *unused,
|
||||
const struct cpumask *cpu_valid_mask,
|
||||
const struct cpumask *new_mask,
|
||||
|
|
@ -4288,7 +4271,6 @@ static void register_walt_hooks(void)
|
|||
register_trace_android_rvh_sched_exec(android_rvh_sched_exec, NULL);
|
||||
register_trace_android_rvh_build_perf_domains(android_rvh_build_perf_domains, NULL);
|
||||
register_trace_cpu_frequency_limits(walt_cpu_frequency_limits, NULL);
|
||||
register_trace_android_vh_dump_throttled_rt_tasks(dump_throttled_rt_tasks, NULL);
|
||||
register_trace_android_rvh_set_cpus_allowed_ptr_locked(
|
||||
android_rvh_set_cpus_allowed_ptr_locked, NULL);
|
||||
register_trace_android_rvh_rto_next_cpu(android_rvh_rto_next_cpu, NULL);
|
||||
|
|
|
|||
|
|
@ -11,23 +11,6 @@
|
|||
#include "walt.h"
|
||||
#include "walt_debug.h"
|
||||
|
||||
static void dump_throttled_rt_tasks(void *unused, int cpu, u64 clock,
|
||||
ktime_t rt_period, u64 rt_runtime, s64 rt_period_timer_expires)
|
||||
{
|
||||
printk_deferred("sched: RT throttling activated for cpu %d\n", cpu);
|
||||
printk_deferred("rt_period_timer: expires=%lld now=%llu rt_time=%llu runtime=%llu period=%llu\n",
|
||||
rt_period_timer_expires, ktime_get_ns(),
|
||||
task_rq(current)->rt.rt_time, rt_runtime, rt_period);
|
||||
printk_deferred("potential CPU hogs:\n");
|
||||
#ifdef CONFIG_SCHED_INFO
|
||||
if (sched_info_on())
|
||||
printk_deferred("current %s (%d) is running for %llu nsec\n",
|
||||
current->comm, current->pid,
|
||||
clock - current->sched_info.last_arrival);
|
||||
#endif
|
||||
BUG();
|
||||
}
|
||||
|
||||
static void android_rvh_schedule_bug(void *unused, void *unused2)
|
||||
{
|
||||
BUG();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user