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

Commit 2755be60 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "devfreq: update mon status when updating the polling interval"

parents f9f1779d d1885ab5
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -832,6 +832,11 @@ static int devfreq_bw_hwmon_ev_handler(struct devfreq *df,
		 */
		node = df->data;
		hw = node->hw;

		mutex_lock(&node->mon_lock);
		node->mon_started = false;
		mutex_unlock(&node->mon_lock);

		hw->suspend_hwmon(hw);
		devfreq_interval_update(df, &sample_ms);
		ret = hw->resume_hwmon(hw);
@@ -840,6 +845,9 @@ static int devfreq_bw_hwmon_ev_handler(struct devfreq *df,
				"Unable to resume HW monitor (%d)\n", ret);
			goto out;
		}
		mutex_lock(&node->mon_lock);
		node->mon_started = true;
		mutex_unlock(&node->mon_lock);
		break;

	case DEVFREQ_GOV_SUSPEND: