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

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

Merge "sched/walt: Avoid walt irq work in offlined cpu"

parents f71c15bb f1a785af
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -3405,3 +3405,13 @@ extern struct task_struct *find_process_by_pid(pid_t pid);

extern void enqueue_task_core(struct rq *rq, struct task_struct *p, int flags);
extern void dequeue_task_core(struct rq *rq, struct task_struct *p, int flags);

#ifdef CONFIG_SMP
static inline void sched_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));
}
#endif