ARM: S3C2443: Accommodate cpufreq frequency scheme in armdiv
commit866a1c8c354e613c2bf378a1cd562756d4a32e75
authorHeiko Stuebner <heiko@sntech.de>
Fri, 14 Oct 2011 06:08:57 +0000 (14 15:08 +0900)
committerKukjin Kim <kgene.kim@samsung.com>
Fri, 14 Oct 2011 06:15:52 +0000 (14 15:15 +0900)
tree2b3e9e37630ee93357b39e6aec8d1d62380996c9
parentf9f7c7503f7002deffe4cb8409ccada075a52522
ARM: S3C2443: Accommodate cpufreq frequency scheme in armdiv

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@sntech.de>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
arch/arm/plat-s3c24xx/s3c2443-clock.c