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

Commit a88ee754 authored by Santosh Mardi's avatar Santosh Mardi Committed by Gerrit - the friendly Code Review server
Browse files

devfreq: allow switching governor when device suspended



When device is suspended, switching governor is not
allowed, governor code is updated to handle this scenario.

Allow governor switch when device is in suspended state.

Change-Id: I03609ee9f3cef3ddc0d8a640e07d20e2003cece0
Signed-off-by: default avatarSantosh Mardi <gsantosh@codeaurora.org>
parent 5258b907
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -1030,10 +1030,6 @@ static ssize_t governor_store(struct device *dev, struct device_attribute *attr,
	}

	mutex_lock(&df->event_lock);
	if (df->dev_suspended) {
		ret = -EINVAL;
		goto gov_stop_out;
	}
	if (df->governor) {
		ret = df->governor->event_handler(df, DEVFREQ_GOV_STOP, NULL);
		if (ret) {