Patchwork [2/4] cpufreq: s5pv210: Don't flood kernel log after cpufreq change

login
register
mail settings
Submitter Paweł Chmiel
Date Jan. 8, 2019, 8:05 p.m.
Message ID <20190108200509.30494-3-pawel.mikolaj.chmiel@gmail.com>
Download mbox | patch
Permalink /patch/695205/
State New
Headers show

Comments

Paweł Chmiel - Jan. 8, 2019, 8:05 p.m.
This commit replaces printk with pr_debug, so we don't flood kernel log.

Signed-off-by: Paweł Chmiel <pawel.mikolaj.chmiel@gmail.com>
---
 drivers/cpufreq/s5pv210-cpufreq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Krzysztof Kozlowski - Jan. 9, 2019, 10:27 a.m.
On Tue, 8 Jan 2019 at 21:05, Paweł Chmiel
<pawel.mikolaj.chmiel@gmail.com> wrote:
>
> This commit replaces printk with pr_debug, so we don't flood kernel log.
>
> Signed-off-by: Paweł Chmiel <pawel.mikolaj.chmiel@gmail.com>
> ---
>  drivers/cpufreq/s5pv210-cpufreq.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Acked-by: Krzysztof Kozlowski <krzk@kernel.org>

Best regards,
Krzysztof

Patch

diff --git a/drivers/cpufreq/s5pv210-cpufreq.c b/drivers/cpufreq/s5pv210-cpufreq.c
index dbecd7667db2..f51697f1e0b3 100644
--- a/drivers/cpufreq/s5pv210-cpufreq.c
+++ b/drivers/cpufreq/s5pv210-cpufreq.c
@@ -481,7 +481,7 @@  static int s5pv210_target(struct cpufreq_policy *policy, unsigned int index)
 				arm_volt, arm_volt_max);
 	}
 
-	printk(KERN_DEBUG "Perf changed[L%d]\n", index);
+	pr_debug("Perf changed[L%d]\n", index);
 
 exit:
 	mutex_unlock(&set_freq_lock);