From 9732114f621630ef916c007b8158c7b6cbc8a87f Mon Sep 17 00:00:00 2001 From: Bai Ping Date: Wed, 27 Jan 2016 15:43:39 +0800 Subject: 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 --- drivers/cpufreq/imx6q-cpufreq.c | 1 + drivers/cpufreq/imx7-cpufreq.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'drivers/cpufreq') 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; } -- cgit v1.2.3