summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorBai Ping <ping.bai@nxp.com>2016-01-27 15:43:39 +0800
committerBai Ping <ping.bai@nxp.com>2016-01-28 18:23:41 +0800
commit79e27ef0d94b6ce3adf7d51009f4e3cef25d4a7c (patch)
tree0b5b4aec2eec84f3833e2f31a0a6925f7ae8fc97 /drivers
parentc9f3c009185e11fcf3a025c36aba2bb3186e33c6 (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')
-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 14b304076590..d9093e14571e 100644
--- a/drivers/cpufreq/imx6q-cpufreq.c
+++ b/drivers/cpufreq/imx6q-cpufreq.c
@@ -260,6 +260,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 4bf851360458..ca5d38fff080 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;
}