[PATCH 2.6.31] ixp4xx: timer and clocks cleanups

Krzysztof Halasa khc at pm.waw.pl
Tue Sep 15 17:59:12 EDT 2009


Mikael Pettersson <mikpe at it.uu.se> writes:

> This patch does a few simple cleanups of the ixp4xx timer
> and clocksource/clockevent code in mach-ixp4xx/common.c:
>
> - ixp4xx_clocksource_init() is static and always returns 0,
>   which is ignored by its only caller: make it return void
> - ixp4xx_clockevent_init(): ditto
> - ixp4xx_get_cycles() is only referenced locally: make it static
> - use the ixp4xx_timer_irq.dev_id field to pass &clockevent_ixp4xx
>   to ixp4xx_timer_interrupt() via its dev_id parameter, allowing
>   the code in ixp4xx_timer_interrupt() to be smaller and faster

Thanks.
-- 
Krzysztof Halasa



More information about the linux-arm-kernel mailing list