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

Commit 66bd7887 authored by Joonwoo Park's avatar Joonwoo Park
Browse files

sched: add sched feature FORCE_CPU_THROTTLING_IMMINENT



Add a new sched feature FORCE_CPU_THROTTLING_IMMINENT to perform
migration due to EA without checking frequency throttling.  This option
can give us better debugging and verification capability.

Change-Id: Iba445961a7f9812528b4e3aa9c6ddf47a3aad583
Signed-off-by: default avatarJoonwoo Park <joonwoop@codeaurora.org>
parent 2c7cc326
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -2513,8 +2513,12 @@ static inline int nr_big_tasks(struct rq *rq)
static inline int is_cpu_throttling_imminent(int cpu)
{
	int throttling = 0;
	struct cpu_pwr_stats *per_cpu_info = get_cpu_pwr_stats();
	struct cpu_pwr_stats *per_cpu_info;

	if (sched_feat(FORCE_CPU_THROTTLING_IMMINENT))
		return 1;

	per_cpu_info = get_cpu_pwr_stats();
	if (per_cpu_info)
		throttling = per_cpu_info[cpu].throttling;
	return throttling;
+2 −0
Original line number Diff line number Diff line
@@ -70,3 +70,5 @@ SCHED_FEAT(LB_MIN, false)
SCHED_FEAT(NUMA,	false)
SCHED_FEAT(NUMA_FORCE,	false)
#endif

SCHED_FEAT(FORCE_CPU_THROTTLING_IMMINENT, false)