mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
sched/walt: Avoid walt irq work in offlined cpu
Avoid walt irq work in offlined cpu. Change-Id: Ia4410562f66bfa57daa15d8c0a785a2c7a95f2a0 Signed-off-by: Maria Yu <aiquny@codeaurora.org> [clingutla@codeaurora.org: Resolved trivial merge conflicts] Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org> [satyap@codeaurora.org: resolve trivial merge conflicts] Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
This commit is contained in:
parent
6c7d9537fe
commit
f1a785af81
1 changed files with 10 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue