[PATCH 2/4] ARM: netx: stop using mach/timex.h

Sascha Hauer s.hauer at pengutronix.de
Tue Nov 26 08:23:44 EST 2013


On Tue, Nov 12, 2013 at 10:41:04PM +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 netx arch code by
> substituting CLOCK_TICK_RATE by a local cpp symbol.
> 
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>

Acked-by: Sascha Hauer <s.hauer at pengutronix.de>

Sascha

> ---
>  arch/arm/mach-netx/time.c | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/arm/mach-netx/time.c b/arch/arm/mach-netx/time.c
> index 6df42e6..0e29902 100644
> --- a/arch/arm/mach-netx/time.c
> +++ b/arch/arm/mach-netx/time.c
> @@ -28,6 +28,8 @@
>  #include <asm/mach/time.h>
>  #include <mach/netx-regs.h>
>  
> +#define NETX_CLOCK_FREQ 100000000
> +
>  #define TIMER_CLOCKEVENT 0
>  #define TIMER_CLOCKSOURCE 1
>  
> @@ -137,11 +139,11 @@ void __init netx_timer_init(void)
>  			NETX_GPIO_COUNTER_CTRL(TIMER_CLOCKSOURCE));
>  
>  	clocksource_mmio_init(NETX_GPIO_COUNTER_CURRENT(TIMER_CLOCKSOURCE),
> -		"netx_timer", CLOCK_TICK_RATE, 200, 32, clocksource_mmio_readl_up);
> +		"netx_timer", NETX_CLOCK_FREQ, 200, 32, clocksource_mmio_readl_up);
>  
>  	/* with max_delta_ns >= delta2ns(0x800) the system currently runs fine.
>  	 * Adding some safety ... */
>  	netx_clockevent.cpumask = cpumask_of(0);
> -	clockevents_config_and_register(&netx_clockevent, CLOCK_TICK_RATE,
> +	clockevents_config_and_register(&netx_clockevent, NETX_CLOCK_FREQ,
>  					0xa00, 0xfffffffe);
>  }
> -- 
> 1.8.4.2
> 
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the linux-arm-kernel mailing list