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

Skip to content
Commit f48911cf authored by Santosh Mardi's avatar Santosh Mardi Committed by Dyneteve
Browse files

cpufreq: flush queued work before freeing policy



When system resume and suspend happening at the same time,
the resume sequence will schedule the work (policy->update)
before policy->update getting chance to run in the meantime
suspend or hotplug of an cpu happens at the same time resume
is happening, and if the cpu is the last in the cluster
policy is freed.

This triggers an issue when scheduler tries to schedule the work
which is scheduled in resume path But the handles are freed already.

Flush the Queued work if any before freeing policy.

Change-Id: I41504e7d9c201916457681537ac480c92e7cbe5d
Signed-off-by: default avatarSantosh Mardi <gsantosh@codeaurora.org>
parent 86f6250d
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