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

Commit 25c2dd34 authored by Arun KS's avatar Arun KS
Browse files

cpufreq_stats: Disable cpu hotplug during stats table creation



During boot there is a possibility for two execution context to create
stats percpu variable concurrently. One called from cpufreq_stats_init
context and other as a part of policy notifier call back. This will
result in corrupted stats variable.

Disable cpu hotplug to avoid corruption.

Change-Id: Iefe2d6b370f6ec303286afc139fa9913fa9a4099
Suggested-by: default avatarSaravana Kannan <skannan@codeaurora.org>
Signed-off-by: default avatarArun KS <arunks@codeaurora.org>
parent dd0af8d2
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