[PATCH] ARM: use clockevents_config_and_register() where possible

Roland Stigge stigge at antcom.de
Mon Nov 26 09:44:06 EST 2012


On 11/26/2012 02:34 PM, Shawn Guo wrote:
> 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 at linaro.org>
> Cc: Nicolas Ferre <nicolas.ferre at atmel.com>
> Cc: Anton Vorontsov <cbouatmailru at gmail.com>
> Cc: Kukjin Kim <kgene.kim at samsung.com>
> Cc: Russell King <linux at arm.linux.org.uk>
> Cc: Sascha Hauer <s.hauer at pengutronix.de>
> Cc: Jason Cooper <jason at lakedaemon.net>
> Cc: Roland Stigge <stigge at antcom.de>
> Cc: Eric Miao <eric.y.miao at gmail.com>
> Cc: Haojian Zhuang <haojian.zhuang at gmail.com>
> Cc: David Brown <davidb at codeaurora.org>
> Cc: Tony Lindgren <tony at atomide.com>
> Cc: Barry Song <baohua.song at csr.com>
> Cc: Stephen Warren <swarren at wwwdotorg.org>
> Cc: Tony Prisk <linux at prisktech.co.nz>
> Cc: Lennert Buytenhek <buytenh at wantstofly.org>
> Cc: Wan ZongShun <mcuos.com at gmail.com>
> Cc: Viresh Kumar <viresh.linux at gmail.com>
> ---
>  arch/arm/mach-at91/at91rm9200_time.c     |    7 ++-----
>  arch/arm/mach-cns3xxx/core.c             |   13 +++----------
>  arch/arm/mach-exynos/mct.c               |   18 ++++--------------
>  arch/arm/mach-footbridge/dc21285-timer.c |    6 +-----
>  arch/arm/mach-imx/epit.c                 |   15 +++------------
>  arch/arm/mach-imx/time.c                 |   15 +++------------
>  arch/arm/mach-ixp4xx/common.c            |   11 ++---------
>  arch/arm/mach-lpc32xx/timer.c            |    9 +--------

On LPC32xx:

Tested-by: Roland Stigge <stigge at antcom.de>

Thanks!

Roland

>  arch/arm/mach-mmp/time.c                 |    7 ++-----
>  arch/arm/mach-msm/timer.c                |    6 +-----
>  arch/arm/mach-mxs/timer.c                |   24 +++++-------------------
>  arch/arm/mach-netx/time.c                |   10 ++--------
>  arch/arm/mach-omap1/time.c               |   11 ++---------
>  arch/arm/mach-omap1/timer32k.c           |   12 ++----------
>  arch/arm/mach-omap2/timer.c              |   13 +++----------
>  arch/arm/mach-prima2/timer.c             |   10 ++--------
>  arch/arm/mach-pxa/time.c                 |    8 ++------
>  arch/arm/mach-sa1100/time.c              |    8 ++------
>  arch/arm/mach-tegra/timer.c              |    8 ++------
>  arch/arm/mach-vt8500/timer.c             |    9 ++-------
>  arch/arm/mach-w90x900/time.c             |   10 ++--------
>  arch/arm/plat-iop/time.c                 |    9 ++-------
>  arch/arm/plat-orion/time.c               |    6 +-----
>  arch/arm/plat-samsung/s5p-time.c         |    9 +--------
>  arch/arm/plat-spear/time.c               |    8 +-------
>  25 files changed, 53 insertions(+), 209 deletions(-)



More information about the linux-arm-kernel mailing list