|
@@ -1658,10 +1658,8 @@ void cpufreq_suspend(void)
|
|
if (!cpufreq_driver)
|
|
if (!cpufreq_driver)
|
|
return;
|
|
return;
|
|
|
|
|
|
- cpufreq_suspended = true;
|
|
|
|
-
|
|
|
|
if (!has_target())
|
|
if (!has_target())
|
|
- return;
|
|
|
|
|
|
+ goto suspend;
|
|
|
|
|
|
pr_debug("%s: Suspending Governors\n", __func__);
|
|
pr_debug("%s: Suspending Governors\n", __func__);
|
|
|
|
|
|
@@ -1674,6 +1672,9 @@ void cpufreq_suspend(void)
|
|
pr_err("%s: Failed to suspend driver: %p\n", __func__,
|
|
pr_err("%s: Failed to suspend driver: %p\n", __func__,
|
|
policy);
|
|
policy);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+suspend:
|
|
|
|
+ cpufreq_suspended = true;
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|