Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1547931 > unrolled thread

[PATCH v2 3/8] PM / devfreq: exynos-bus: Print the real clock rate of bus

Started byChanwoo Choi <cw00.choi@samsung.com>
First post2016-12-28 13:00 +0100
Last post2016-12-30 11:40 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH v2 3/8] PM / devfreq: exynos-bus: Print the real clock rate of  bus Chanwoo Choi <cw00.choi@samsung.com> - 2016-12-28 13:00 +0100
    Re: [PATCH v2 3/8] PM / devfreq: exynos-bus: Print the real clock  rate of bus MyungJoo Ham <myungjoo.ham@samsung.com> - 2016-12-30 11:40 +0100

#1547931 — [PATCH v2 3/8] PM / devfreq: exynos-bus: Print the real clock rate of bus

FromChanwoo Choi <cw00.choi@samsung.com>
Date2016-12-28 13:00 +0100
Subject[PATCH v2 3/8] PM / devfreq: exynos-bus: Print the real clock rate of bus
Message-ID<sTl3I-7Id-39@gated-at.bofh.it>
This patch shows the real clock rate after calling clk_set_rate()
to debug it.

Cc: Kukjin Kim <kgene@kernel.org>
Cc: Krzysztof Kozlowski <krzk@kernel.org>
Cc: Javier Martinez Canillas <javier@osg.samsung.com>
Cc: linux-samsung-soc@vger.kernel.org
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
---
 drivers/devfreq/exynos-bus.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/devfreq/exynos-bus.c b/drivers/devfreq/exynos-bus.c
index 9af86f46fbec..e0d1f4ac1740 100644
--- a/drivers/devfreq/exynos-bus.c
+++ b/drivers/devfreq/exynos-bus.c
@@ -147,8 +147,8 @@ static int exynos_bus_target(struct device *dev, unsigned long *freq, u32 flags)
 	}
 	bus->curr_freq = new_freq;
 
-	dev_dbg(dev, "Set the frequency of bus (%lukHz -> %lukHz)\n",
-			old_freq/1000, new_freq/1000);
+	dev_dbg(dev, "Set the frequency of bus (%luHz -> %luHz, %luHz)\n",
+			old_freq, new_freq, clk_get_rate(bus->clk));
 out:
 	mutex_unlock(&bus->lock);
 
@@ -241,8 +241,8 @@ static int exynos_bus_passive_target(struct device *dev, unsigned long *freq,
 	*freq = new_freq;
 	bus->curr_freq = new_freq;
 
-	dev_dbg(dev, "Set the frequency of bus (%lukHz -> %lukHz)\n",
-			old_freq/1000, new_freq/1000);
+	dev_dbg(dev, "Set the frequency of bus (%luHz -> %luHz, %luHz)\n",
+			old_freq, new_freq, clk_get_rate(bus->clk));
 out:
 	mutex_unlock(&bus->lock);
 
-- 
1.9.1

[toc] | [next] | [standalone]


#1548529 — Re: [PATCH v2 3/8] PM / devfreq: exynos-bus: Print the real clock rate of bus

FromMyungJoo Ham <myungjoo.ham@samsung.com>
Date2016-12-30 11:40 +0100
SubjectRe: [PATCH v2 3/8] PM / devfreq: exynos-bus: Print the real clock rate of bus
Message-ID<sU2Ln-39f-9@gated-at.bofh.it>
In reply to#1547931
On Wed, Dec 28, 2016 at 8:56 PM, Chanwoo Choi <cw00.choi@samsung.com> wrote:
> This patch shows the real clock rate after calling clk_set_rate()
> to debug it.
>
> Cc: Kukjin Kim <kgene@kernel.org>
> Cc: Krzysztof Kozlowski <krzk@kernel.org>
> Cc: Javier Martinez Canillas <javier@osg.samsung.com>
> Cc: linux-samsung-soc@vger.kernel.org
> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>

Acked-by: MyungJoo Ham <myungjoo.ham@gmail.com>


> ---
>  drivers/devfreq/exynos-bus.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
>

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web