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

Commit acebb7ae authored by Shridhar Rasal's avatar Shridhar Rasal Committed by Amit Pundir
Browse files

cpufreq: interactive: delete timers for GOV_START



Make sure that timers cpu_timer and cpu_slack_timer
deactivated before addition of new.

Change-Id: If31c4049606871df6f00efdc24b1d713c86a6f69
Signed-off-by: default avatarShridhar Rasal <srasal@nvidia.com>
Signed-off-by: default avatarBharat Nihalani <bnihalani@nvidia.com>
parent b9c5075f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1247,6 +1247,8 @@ static int cpufreq_governor_interactive(struct cpufreq_policy *policy,
			pcpu->hispeed_validate_time =
				pcpu->floor_validate_time;
			down_write(&pcpu->enable_sem);
			del_timer_sync(&pcpu->cpu_timer);
			del_timer_sync(&pcpu->cpu_slack_timer);
			cpufreq_interactive_timer_start(tunables, j);
			pcpu->governor_enabled = 1;
			up_write(&pcpu->enable_sem);