summaryrefslogtreecommitdiff
path: root/drivers/cpufreq
diff options
context:
space:
mode:
authorBai Ping <ping.bai@nxp.com>2016-01-27 15:43:39 +0800
committerLeonard Crestez <leonard.crestez@nxp.com>2018-08-24 12:41:33 +0300
commit9732114f621630ef916c007b8158c7b6cbc8a87f (patch)
treeb11d7325464ff18cbf476697fbba162626fce693 /drivers/cpufreq
parent31aae15622232950b21e9ca5b927a442b33b3280 (diff)
MLK-12328 cpufreq: imx: put the cpufreq policy after used
The cpufreq_cpu_get() and cpufreq_cpu_put() should be called in pairs. Otherwise, system will dump when enabling lock debug config. Signed-off-by: Bai Ping <ping.bai@nxp.com>
Diffstat (limited to 'drivers/cpufreq')
-rw-r--r--drivers/cpufreq/imx6q-cpufreq.c1
-rw-r--r--drivers/cpufreq/imx7-cpufreq.c3
2 files changed, 3 insertions, 1 deletions
diff --git a/drivers/cpufreq/imx6q-cpufreq.c b/drivers/cpufreq/imx6q-cpufreq.c
index 04b9662e7f9e..ad6b03c0d4de 100644
--- a/drivers/cpufreq/imx6q-cpufreq.c
+++ b/drivers/cpufreq/imx6q-cpufreq.c
@@ -251,6 +251,7 @@ static int imx6_cpufreq_pm_notify(struct notifier_block *nb,
}
cpufreq_update_policy(0);
+ cpufreq_cpu_put(data);
return NOTIFY_OK;
}
diff --git a/drivers/cpufreq/imx7-cpufreq.c b/drivers/cpufreq/imx7-cpufreq.c
index d5c799a0c0f9..b13126d0dcbd 100644
--- a/drivers/cpufreq/imx7-cpufreq.c
+++ b/drivers/cpufreq/imx7-cpufreq.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2015 Freescale Semiconductor, Inc.
+ * Copyright (C) 2015-2016 Freescale Semiconductor, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
@@ -151,6 +151,7 @@ static int imx7_cpufreq_pm_notify(struct notifier_block *nb,
}
cpufreq_update_policy(0);
+ cpufreq_cpu_put(data);
return NOTIFY_OK;
}