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: Lina Iyer <ilina@codeaurora.org>
This commit is contained in:
Lina Iyer 2020-04-02 11:27:37 -06:00 • committed by Gerrit - the friendly Code Review server
commit f92e1bb50f

View file

@ -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);