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

Commit b67799ed authored by Pavankumar Kondeti's avatar Pavankumar Kondeti Committed by Joonwoo Park
Browse files

sched: Move core_ctl callback from tick to WALT IRQ work



The WALT window size and tick period can be different. Hence move
core_ctl callback from tick to WALT IRQ work. As all online CPUs's
windows are rolled over in this work, core_ctl can query the load
without worrying about window rollover.

Change-Id: I5e0bc8f3508f02f68690df67f322b89350ead25c
Signed-off-by: default avatarPavankumar Kondeti <pkondeti@codeaurora.org>
parent ef91028c
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -76,7 +76,6 @@
#include <linux/frame.h>
#include <linux/prefetch.h>
#include <linux/irq.h>
#include <linux/sched/core_ctl.h>

#include <asm/switch_to.h>
#include <asm/tlb.h>
+3 −0
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@
#include <linux/cpufreq.h>
#include <linux/list_sort.h>
#include <linux/jiffies.h>
#include <linux/sched/core_ctl.h>
#include <trace/events/sched.h>
#include "sched.h"
#include "walt.h"
@@ -2946,4 +2947,6 @@ void walt_irq_work(struct irq_work *irq_work)

	for_each_cpu(cpu, cpu_possible_mask)
		raw_spin_unlock(&cpu_rq(cpu)->lock);

	core_ctl_check(this_rq()->window_start);
}