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

Skip to content
Commit 323c1d0e authored by Rama Aparna Mallavarapu's avatar Rama Aparna Mallavarapu
Browse files

Revert "devfreq: bwmon: Serialize update_devfreq with governor start/stop()"



The commit 'e42d9b00' causes a deadlock
as it introduces reverse lock ordering between df->lock and mon_lock.
Below is the sequence for the deadlock.

       gov_stop					update_bw_hwmon
mutex_lock(&df->lock)			mutex_lock(&node->mon_lock);
........					........
stop_monitor(df,true)			mutex_lock(&df->lock);
	mutex_lock(&node->mon_lock);		update_devfreq();
        ....
	mutex_unlock(&node->mon_lock);		mutex_unlock(&df->lock);
...						.........
mutex_unlock(&df->lock)			mutex_unlock(&node->mon_lock);

Hence revert this commit to fix the deadlock. This reverts commit
e42d9b00.

Change-Id: I1c4bd52ac462b4f1fdec4b494b6fb74e00fd72f8
Signed-off-by: default avatarRama Aparna Mallavarapu <aparnam@codeaurora.org>
parent b39b9019
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment