mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 23:53:32 +00:00
ARM: S3C64XX: Provide logging when CPU frequencies are eliminated due 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>
This commit is contained in:
parent
42015c133b
commit
383af9c258
1 changed files with 4 additions and 1 deletions
|
@ -217,8 +217,11 @@ static int __init s3c64xx_cpufreq_driver_init(struct cpufreq_policy *policy)
|
||||||
/* Check for frequencies we can generate */
|
/* Check for frequencies we can generate */
|
||||||
r = clk_round_rate(armclk, freq->frequency * 1000);
|
r = clk_round_rate(armclk, freq->frequency * 1000);
|
||||||
r /= 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;
|
freq->frequency = CPUFREQ_ENTRY_INVALID;
|
||||||
|
}
|
||||||
|
|
||||||
/* If we have no regulator then assume startup
|
/* If we have no regulator then assume startup
|
||||||
* frequency is the maximum we can support. */
|
* frequency is the maximum we can support. */
|
||||||
|
|
Loading…
Reference in a new issue