ARM: S3C64XX: Provide logging when CPU frequencies are eliminated due to clocks
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 3 Nov 2009 14:42:07 +0000 (14:42 +0000)
committerBen Dooks <ben-linux@fluff.org>
Tue, 1 Dec 2009 01:35:38 +0000 (01:35 +0000)
This provides symmetry with the voltage based checks done for the
regulator.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
arch/arm/plat-s3c64xx/cpufreq.c

index e6e0843215dfff94748b3e1054d5d3b7e66dab28..bdc3c96971f5a7420b23dc35b4f96cb7748418e0 100644 (file)
@@ -217,8 +217,11 @@ static int __init s3c64xx_cpufreq_driver_init(struct cpufreq_policy *policy)
                /* Check for frequencies we can generate */
                r = clk_round_rate(armclk, freq->frequency * 1000);
                r /= 1000;
-               if (r != freq->frequency)
+               if (r != freq->frequency) {
+                       pr_debug("cpufreq: %dkHz unsupported by clock\n",
+                                freq->frequency);
                        freq->frequency = CPUFREQ_ENTRY_INVALID;
+               }
 
                /* If we have no regulator then assume startup
                 * frequency is the maximum we can support. */