Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6f11c7fa authored by Pavankumar Kondeti's avatar Pavankumar Kondeti Committed by Syed Rameez Mustafa
Browse files

sched: qhmp: remove the dead code in qhmp_rt.c



qhmp_rt.c is compiled only when SCHED_QHMP config is enabled.
Remove the code under !SCHED_QHMP.

CRs-Fixed: 996652
Change-Id: I9b878395feb364e2a1756fd035b57a5f9470a6f1
Signed-off-by: default avatarPavankumar Kondeti <pkondeti@codeaurora.org>
parent e551e7a6
Loading
Loading
Loading
Loading
+0 −17
Original line number Diff line number Diff line
@@ -1178,23 +1178,12 @@ dec_hmp_sched_stats_rt(struct rq *rq, struct task_struct *p)
	dec_cumulative_runnable_avg(&rq->hmp_stats, p);
}

#ifdef CONFIG_SCHED_QHMP
static void
fixup_hmp_sched_stats_rt(struct rq *rq, struct task_struct *p,
			 u32 new_task_load)
{
	fixup_cumulative_runnable_avg(&rq->hmp_stats, p, new_task_load);
}
#else
static void
fixup_hmp_sched_stats_rt(struct rq *rq, struct task_struct *p,
			 u32 new_task_load)
{
	s64 task_load_delta = (s64)new_task_load - task_load(p);

	fixup_cumulative_runnable_avg(&rq->hmp_stats, p, task_load_delta);
}
#endif

#else	/* CONFIG_SCHED_HMP */

@@ -1679,18 +1668,12 @@ static int find_lowest_rq_hmp(struct task_struct *task)
		cpu_load = scale_load_to_cpu(
			cpu_rq(i)->hmp_stats.cumulative_runnable_avg, i);

#ifdef CONFIG_SCHED_QHMP
		cpu_cost = power_cost(cpu_load, i);
		trace_sched_cpu_load(cpu_rq(i), idle_cpu(i), mostly_idle_cpu(i),
				     sched_irqload(i), cpu_cost, cpu_temp(i));

		if (sched_boost() && capacity(cpu_rq(i)) != max_capacity)
			continue;
#else
		cpu_cost = power_cost(i, cpu_cravg_sync(i, 0));
		trace_sched_cpu_load_wakeup(cpu_rq(i), idle_cpu(i),
			sched_irqload(i), cpu_cost, cpu_temp(i));
#endif

		if (power_delta_exceeded(cpu_cost, min_cost)) {
			if (cpu_cost > min_cost)