S3C2443: Accommodate cpufreq frequency scheme in armdiv
From: Heiko Stuebner <heiko.stuebner@...> Date: Tue, 27 Sep 2011 13:39:04 +0200
Commit-Message
Cpufreq uses frequencies in kHz and not Hz, so set_rate and round_rate would be called with a frequency of 266666000 instead of 266666666 but the clock functions check for rates smaller or equal to the targetrate. As the armdiv does not support steps this small we can accommodate this by simply also setting the last 3 digits of the calculated rate to zero. Signed-off-by: Heiko Stuebner <heiko@...>
Patch-Comment
arch/arm/plat-s3c24xx/s3c2443-clock.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-)
Statistics
- 4 lines added
- 2 lines removed