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

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

Merge "PM / devfreq: memlat: fix suspend/resume calls to devfreq_monitor"

parents 6c710cb3 3de12689
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -208,9 +208,11 @@ static int gov_start(struct devfreq *df)
static int gov_suspend(struct devfreq *df)
{
	struct memlat_node *node = df->data;
	struct memlat_hwmon *hw = node->hw;
	unsigned long prev_freq = df->previous_freq;

	node->mon_started = false;
	if (!hw->should_ignore_df_monitor)
		devfreq_monitor_suspend(df);

	mutex_lock(&df->lock);
@@ -225,6 +227,7 @@ static int gov_suspend(struct devfreq *df)
static int gov_resume(struct devfreq *df)
{
	struct memlat_node *node = df->data;
	struct memlat_hwmon *hw = node->hw;

	mutex_lock(&df->lock);
	update_devfreq(df);
@@ -232,6 +235,7 @@ static int gov_resume(struct devfreq *df)

	node->resume_freq = 0;

	if (!hw->should_ignore_df_monitor)
		devfreq_monitor_resume(df);
	node->mon_started = true;