ARM: use clockevents_config_and_register() where possible
authorShawn Guo <shawn.guo@linaro.org>
Sat, 12 Jan 2013 11:50:05 +0000 (11:50 +0000)
committerOlof Johansson <olof@lixom.net>
Mon, 14 Jan 2013 18:12:42 +0000 (10:12 -0800)
commit838a2ae80a6ab52139fb1bf0a93ea8c5eff94488
tree5e5fbbc2005b012318b7474f9c6057b9ff3f3814
parentc35ef95c273c06471818f9245a05ac5a6e3ffa34
ARM: use clockevents_config_and_register() where possible

The clockevent core is able to figure out the best mult and shift,
calculate min_delta_ns and max_delta_ns, with the necessary info passed
into clockevents_config_and_register().  Use this combined configure
and register function where possible to make the codes less error prone
and gain some positive diff stat.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Reviewed-by: Anton Vorontsov <cbouatmailru@gmail.com>
Acked-by: Kukjin Kim <kgene.kim@samsung.com>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Jason Cooper <jason@lakedaemon.net>
Tested-by: Roland Stigge <stigge@antcom.de>
Acked-by: Eric Miao <eric.y.miao@gmail.com>
Cc: Haojian Zhuang <haojian.zhuang@gmail.com>
Cc: David Brown <davidb@codeaurora.org>
Tested-by: Tony Lindgren <tony@atomide.com>
Acked-by: Barry Song <baohua.song@csr.com>
Tested-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Tony Prisk <linux@prisktech.co.nz>
Cc: Lennert Buytenhek <buytenh@wantstofly.org>
Cc: Wan ZongShun <mcuos.com@gmail.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Jason Cooper <jason@lakedaemon.net>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Olof Johansson <olof@lixom.net>
25 files changed:
arch/arm/mach-at91/at91rm9200_time.c
arch/arm/mach-cns3xxx/core.c
arch/arm/mach-exynos/mct.c
arch/arm/mach-footbridge/dc21285-timer.c
arch/arm/mach-imx/epit.c
arch/arm/mach-imx/time.c
arch/arm/mach-ixp4xx/common.c
arch/arm/mach-lpc32xx/timer.c
arch/arm/mach-mmp/time.c
arch/arm/mach-msm/timer.c
arch/arm/mach-mxs/timer.c
arch/arm/mach-netx/time.c
arch/arm/mach-omap1/time.c
arch/arm/mach-omap1/timer32k.c
arch/arm/mach-omap2/timer.c
arch/arm/mach-prima2/timer.c
arch/arm/mach-pxa/time.c
arch/arm/mach-sa1100/time.c
arch/arm/mach-tegra/timer.c
arch/arm/mach-vt8500/timer.c
arch/arm/mach-w90x900/time.c
arch/arm/plat-iop/time.c
arch/arm/plat-orion/time.c
arch/arm/plat-samsung/s5p-time.c
arch/arm/plat-spear/time.c