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

Skip to content
Commit 87fb7c50 authored by Anurag Singh's avatar Anurag Singh
Browse files

cpufreq: persistent_stats: Synchronize access to time_in_state



The cpufreq_stats_create_table function does not fully protect cpu_stats'
members with a spinlock. This change fixes that. It also performs a
null-check on freq_table in freq_table_get_index and returns -ENOENT
appropriately.

Change-Id: I301d1b23ef766a77161bab1472dc810d53b6c5fe
Signed-off-by: default avatarAnurag Singh <anursing@codeaurora.org>
parent 6459505b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment