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

Commit 2e978306 authored by Mahesh Sivasubramanian's avatar Mahesh Sivasubramanian
Browse files

drivers: cpuidle: lpm-levels: Notify sched of low power modes



Call into scheduler APIs when a CPU enters/exits a low power modes to
prevent scheduler from waking up a sleeping CPU

Change-Id: I54af417647c956411125040d0223d0e9293df578
Signed-off-by: default avatarMahesh Sivasubramanian <msivasub@codeaurora.org>
parent d2ae07b1
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1346,6 +1346,8 @@ static int lpm_cpuidle_enter(struct cpuidle_device *dev,
	struct power_params *pwr_params;

	pwr_params = &cpu->levels[idx].pwr;
	sched_set_cpu_cstate(dev->cpu, idx + 1,
			pwr_params->energy_overhead, pwr_params->latency_us);

	cpu_prepare(cpu, idx, true);
	cluster_prepare(cpu->parent, cpumask, idx, true, start_time);