ARM: pxa: reduce the scope of get_clk_frequency_khz()
authorHaojian Zhuang <haojian.zhuang@gmail.com>
Mon, 20 Sep 2010 00:09:10 +0000 (20:09 -0400)
committerEric Miao <eric.y.miao@gmail.com>
Sat, 9 Oct 2010 09:07:30 +0000 (17:07 +0800)
commitecf89b8a9189462480086f72791eb41f8aa09bfd
tree90668e0d1098fa5afc0f631c8bc8884c934e9471
parent759305c62f294d4f5fb1d8dde5ece98d2f71cfcb
ARM: pxa: reduce the scope of get_clk_frequency_khz()

get_clk_frequency_khz() is used in private cpufreq driver. In order to meet
the change of different pxa silicons, checking cpuid is introduced in
get_clk_frequency_khz(). While more pxa silicons are supported, the workload
of checking cpuid is higher.

So restrict the scope of get_clk_frequency_khz() on pxa2xx. Different pxa
silcions use different private cpufreq driver to avoid too much checking
on cpuid.

Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com>
Cc: Eric Miao <eric.y.miao@gmail.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
arch/arm/mach-pxa/cpufreq-pxa3xx.c
arch/arm/mach-pxa/generic.c