cpufreq: change debug message level to show clock change error
authorSteven Miao <realmz6@gmail.com>
Thu, 31 May 2012 10:29:08 +0000 (18:29 +0800)
committerBob Liu <lliubbo@gmail.com>
Tue, 24 Jul 2012 05:39:49 +0000 (13:39 +0800)
Signed-off-by: Steven Miao <realmz6@gmail.com>
Signed-off-by: Bob Liu <lliubbo@gmail.com>
arch/blackfin/mach-bf609/clock.c
arch/blackfin/mach-common/cpufreq.c

index 7f8f529693aeaae16f156cabcd7b6a920f5cc743..437d56c8228132301fce013f6ebf49e9f9467df6 100644 (file)
@@ -97,9 +97,10 @@ int wait_for_pll_align(void)
        while (i-- && (bfin_read32(CGU0_STAT) & CGU0_STAT_CLKSALGN));
 
        if (bfin_read32(CGU0_STAT) & CGU0_STAT_CLKSALGN) {
-               printk(KERN_DEBUG "fail to align clk\n");
+               printk(KERN_CRIT "fail to align clk\n");
                return -1;
        }
+
        return 0;
 }
 
index 6e87dc13f6bfa1dde4dbfa72e4ce506b711cad62..aee82a1a1ba4bb3f76c21ca5e9d38c6e8adbd554 100644 (file)
@@ -173,7 +173,7 @@ static int bfin_target(struct cpufreq_policy *poli,
 #else
                        ret = cpu_set_cclk(cpu, freqs.new * 1000);
                        if (ret != 0) {
-                               pr_debug("cpufreq set freq failed %d\n", ret);
+                               WARN_ONCE(ret, "cpufreq set freq failed %d\n", ret);
                                break;
                        }
 #endif