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

Commit f92e1bb5 authored by Lina Iyer's avatar Lina Iyer Committed by Gerrit - the friendly Code Review server
Browse files

drivers: cpuidle: lpm-levels: initialize latency to default



Let's not leave initialization of variable to chance, while determining
the QoS for CPU(s). Initialize to PM QoS default value.

Change-Id: I218599905b8b333c4421ad98fee26c967c5b3aa5
Signed-off-by: default avatarLina Iyer <ilina@codeaurora.org>
parent 17c22334
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -485,7 +485,8 @@ static inline bool lpm_disallowed(s64 sleep_us, int cpu)
static inline uint32_t get_cpus_qos(const struct cpumask *mask)
{
	int cpu;
	uint32_t n, latency;
	uint32_t n;
	uint32_t latency = PM_QOS_CPU_DMA_LAT_DEFAULT_VALUE;

	for_each_cpu(cpu, mask) {
		n = cpuidle_governor_latency_req(cpu);