[PATCH 3/3] ARM: twd_smp: add clock api support

Russell King - ARM Linux linux at arm.linux.org.uk
Fri Oct 1 14:34:31 EDT 2010


On Fri, Oct 01, 2010 at 11:22:31AM -0700, Colin Cross wrote:
> The timer APIs require that a timer take at least as long as requested
> to fire.  If you change the TWD prescaler before the CPU frequency
> increases, or after the CPU frequency decreases, the timer interrupt
> will not fire until a small time after the requested time.

That maybe - and for TWD which is used for local timer purposes only,
that's fine.  What wouldn't be fine is if your clocksource counter
changes frequency...

In any case, I'm not sure that passing in a struct clk pointer is
really the right way to go - the point of the clk API is to remove
such passing of static structures.

How about instead using clk_get_sys() to obtain a clock for the TWD?

Do we need separate connection IDs for each TWD, or are all TWDs in
a system always clocked together?



More information about the linux-arm-kernel mailing list