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

Commit 4c5b2873 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "sched: add sched feature FORCE_CPU_THROTTLING_IMMINENT"

parents a2ada2d4 66bd7887
Loading
Loading
Loading
Loading
+5 −1
Original line number Original line 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)
static inline int is_cpu_throttling_imminent(int cpu)
{
{
	int throttling = 0;
	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)
	if (per_cpu_info)
		throttling = per_cpu_info[cpu].throttling;
		throttling = per_cpu_info[cpu].throttling;
	return throttling;
	return throttling;
+2 −0
Original line number Original line Diff line number Diff line
@@ -70,3 +70,5 @@ SCHED_FEAT(LB_MIN, false)
SCHED_FEAT(NUMA,	false)
SCHED_FEAT(NUMA,	false)
SCHED_FEAT(NUMA_FORCE,	false)
SCHED_FEAT(NUMA_FORCE,	false)
#endif
#endif

SCHED_FEAT(FORCE_CPU_THROTTLING_IMMINENT, false)