lkml.org 
[lkml]   [2014]   [Feb]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
SubjectRe: [PATCH V5 0/7] cpufreq: suspend early/resume late: dpm_{suspend|resume}()
From
On 15 February 2014 01:52, Stephen Warren <swarren@wwwdotorg.org> wrote:
> BTW, I also happened to test these on a Tegra114 system, on which there
> is no cpufreq driver, and this series (applied on top of commit
> 9398a10cd964 Merge tag 'regulator-v3.14-rc2') causes the following
> during suspend:

Ahh, that's a obvious bug. Following would fix it, thanks:

diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c
index c13c100..2dfbb7e 100644
--- a/drivers/cpufreq/cpufreq.c
+++ b/drivers/cpufreq/cpufreq.c
@@ -1617,6 +1617,9 @@ void cpufreq_suspend(void)
{
struct cpufreq_policy *policy;

+ if (!cpufreq_driver)
+ return;
+
if (!has_target())
return;

@@ -1645,6 +1648,9 @@ void cpufreq_resume(void)
{
struct cpufreq_policy *policy;

+ if (!cpufreq_driver)
+ return;
+
if (!has_target())
return;

\
 
 \ /
  Last update: 2014-02-17 08:01    [W:0.130 / U:0.180 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site