cpufreq: exynos5440: Fix to skip when new frequency same as current
authorAmit Daniel Kachhap <amit.daniel@samsung.com>
Wed, 7 Aug 2013 11:16:11 +0000 (16:46 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Mon, 12 Aug 2013 06:30:18 +0000 (12:00 +0530)
commitc721d15a5cc1dade16f068123070c570378c5cc0
tree5ce80b3b5efc2c20a82b4af1709127a9d17d9385
parentd4e4ab86bcba5a72779c43dc1459f71fea3d89c8
cpufreq: exynos5440: Fix to skip when new frequency same as current

This patch fixes the issue of un-necessary setting the clock controller
when the new target frequency is same as the current one. This case usually
occurs with governors like ondemand which passes the target frequency as the
percentage of average frequency. This check is present in most of the cpufreq
drivers.

Cc: Viresh Kumar <viresh.kumar@linaro.org>
Cc: Rafael J. Wysocki <rjw@sisk.pl>
Cc: Kukjin Kim <kgene.kim@samsung.com>
Signed-off-by: Amit Daniel Kachhap <amit.daniel@samsung.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/exynos5440-cpufreq.c