[lkml]   [2018]   [Nov]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [RFC PATCH v2 06/14] m68k: amiga: Convert to clocksource API
On Mon, Nov 19, 2018 at 2:22 AM Finn Thain <> wrote:

> Add a platform clocksource by adapting the existing arch_gettimeoffset
> implementation.
> Signed-off-by: Finn Thain <>
> Acked-by: Linus Walleij <>
> ---
> Changed since v1:
> - Moved clk_total access to within the irq lock.

Came to think of it, Geert can probably answer to the use cases
for the CIAs in Linux: the Amiga CIA has two counters.

It would make sense to use one as a free-runing clocksource and
the other one as clock event. Then Linux is extremely happy
without any complex workarounds trying to use just one timer
for both jobs.

Is there some specific reason why we can't use both counters
like this, except for legacy? (I am thinking it would be an improvement
on top of Finn's series once they go in.)

Linus Walleij

 \ /
  Last update: 2018-11-20 09:05    [W:0.148 / U:32.116 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site