Skip to content

Commit

Permalink
ARM: S3C64XX: Provide logging when CPU frequencies are eliminated due…
Browse files Browse the repository at this point in the history
… to clocks

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>
  • Loading branch information
Mark Brown authored and Ben Dooks committed Dec 1, 2009
1 parent 42015c1 commit 383af9c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion arch/arm/plat-s3c64xx/cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit 383af9c

Please sign in to comment.