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

Commit c9d2eaf4 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "cpufreq: schedutil: Queue sugov irq work on policy online cpu"

parents 64d7b4bd 9af2c232
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -263,7 +263,7 @@ static void sugov_deferred_update(struct sugov_policy *sg_policy, u64 time,

	if (use_pelt())
		sg_policy->work_in_progress = true;
	irq_work_queue(&sg_policy->irq_work);
	walt_irq_work_queue(&sg_policy->irq_work);
}

#define TARGET_LOAD 80
+15 −0
Original line number Diff line number Diff line
@@ -3368,3 +3368,18 @@ extern void walt_init_sched_boost(struct task_group *tg);
#else
static inline void walt_init_sched_boost(struct task_group *tg) {}
#endif

#ifdef CONFIG_SCHED_WALT
static inline void walt_irq_work_queue(struct irq_work *work)
{
	if (likely(cpu_online(raw_smp_processor_id())))
		irq_work_queue(work);
	else
		irq_work_queue_on(work, cpumask_any(cpu_online_mask));
}
#else
static inline void walt_irq_work_queue(struct irq_work *work)
{
	irq_work_queue(work);
}
#endif