[PATCH 1/4] ARM: sa1100: stop using mach/timex.h
Uwe Kleine-König
u.kleine-koenig at pengutronix.de
Tue Nov 26 09:01:10 EST 2013
Hello,
[expanded To: and Cc: to include the people scripts/get_maintainer.pl suggested]
On Tue, Nov 12, 2013 at 10:41:03PM +0100, Uwe Kleine-König wrote:
> mach/timex.h is the last remaining header that is unused for multiarch
> builds but necessary for singlearch builds. To allow to get rid of it
> for singlearch builds, too, drop its usage in sa1100 arch code by
> substituting CLOCK_TICK_RATE by a local cpp symbol.
Who feels responsible to give (a reason for not giving) an Ack here?
Thanks
Uwe
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>
> ---
> arch/arm/mach-sa1100/time.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/mach-sa1100/time.c b/arch/arm/mach-sa1100/time.c
> index 713c86c..83be0d6 100644
> --- a/arch/arm/mach-sa1100/time.c
> +++ b/arch/arm/mach-sa1100/time.c
> @@ -20,6 +20,8 @@
> #include <mach/hardware.h>
> #include <mach/irqs.h>
>
> +#define SA1100_CLOCK_FREQ 3686400
> +
> static u32 notrace sa1100_read_sched_clock(void)
> {
> return readl_relaxed(OSCR);
> @@ -128,7 +130,7 @@ void __init sa1100_timer_init(void)
>
> setup_irq(IRQ_OST0, &sa1100_timer_irq);
>
> - clocksource_mmio_init(OSCR, "oscr", CLOCK_TICK_RATE, 200, 32,
> + clocksource_mmio_init(OSCR, "oscr", SA1100_CLOCK_FREQ, 200, 32,
> clocksource_mmio_readl_up);
> clockevents_config_and_register(&ckevt_sa1100_osmr0, 3686400,
> MIN_OSCR_DELTA * 2, 0x7fffffff);
> --
> 1.8.4.2
>
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | http://www.pengutronix.de/ |
More information about the linux-arm-kernel
mailing list