Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp364304imu; Tue, 20 Nov 2018 00:06:28 -0800 (PST) X-Google-Smtp-Source: AFSGD/XN25h7sBFU1aO134RB6EcHlro13Or70/z8f9jNH0Mt+hXhvQ3SA3RrlFSOW3vUivdnW3aV X-Received: by 2002:a17:902:2c03:: with SMTP id m3mr1164624plb.6.1542701188263; Tue, 20 Nov 2018 00:06:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542701188; cv=none; d=google.com; s=arc-20160816; b=bMQnAAGiuvpVmb0gy28MBUsFNIXCBXJPh91G4X6aYsjD1/fX39rfNa9pGW6tRNxv5o Fqf0i46kSwZY+LDwSA0QzbwAnGnr6vkm0r1CDhiIX3MXh/CgXawqjZu595yiVIcIOvsA jx6Wv70vpleL74adp7zLUQPHu0/S6sVX+tq0nAxTr3CMmDw+Yl5LFaZxD6m6YM+Ns6J/ 1H6THlxva6nMnxjyr7MkOW4U2wkMTwuj4Hm3p1x3InD8Mmv38xTnPeIJPhZ677Xfjn6v jCsfPZkYUs9mut5l/AIYzXSCIX2gJ7u81neAAeZ0+oOyTWfd8GP9ADYd9ayZbQGryXtY YAWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=+U2xW/aiz6s/9RZ44gIa5D1ebtAulHh+ewF5Pk7byZE=; b=TjJ5tKZhKyZlUy4ktCwndBcajNC9+rk3rL9cummYg7z38gJX3pBBw3jBvyqXt+4Oi1 N/Jp1Ma5onrCB7IVtYMqBN3vIyf4F+SUSNud8x2U0kYuioVhWlgDyOpK3e1f/aCyc+Mt eYUxOxO/W/hAxGzEMsKPIHE973vlkGCrfGai7CYJohHkQrujh9DuIwoZElHPi5f/DlCC Tng/TMCxpm5PygigYhnnD5+DGZ39kxY64B2SDYUMsTXH9p0IWLuK8TInXkq5TSU2nSGU sBvt1MmFmAxIs1QCpkmQdeeZqihDy9HrfrL6tW9n6oqmsFudmOsr1VW9x19aA9EO2t1j 25fA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=heYEfpao; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t4si26022130pgg.110.2018.11.20.00.06.13; Tue, 20 Nov 2018 00:06:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=heYEfpao; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725961AbeKTScD (ORCPT + 99 others); Tue, 20 Nov 2018 13:32:03 -0500 Received: from mail-lj1-f194.google.com ([209.85.208.194]:35217 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725780AbeKTScD (ORCPT ); Tue, 20 Nov 2018 13:32:03 -0500 Received: by mail-lj1-f194.google.com with SMTP id x85-v6so827486ljb.2 for ; Tue, 20 Nov 2018 00:04:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+U2xW/aiz6s/9RZ44gIa5D1ebtAulHh+ewF5Pk7byZE=; b=heYEfpao2uxycnUo9K74Iupc9rcdF0KJTzi9LJPVKqovTlLVMDBx9nDtZYHJLxw8zt WPLomH88bnldiCoBnZk8rvKoYz+4fBXkZBjCMvea/rdc834RKbKKUVMRvD4hgFIUWu8t 1UssgMk9wsxSKdKydj/IJW8QfulcK1UOr8h/U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+U2xW/aiz6s/9RZ44gIa5D1ebtAulHh+ewF5Pk7byZE=; b=LLO6NNnHdcJ3cH2Hia1nXXTA6uu1rVR38zsSA64Rl0XeH4AyknS7a8D/blrvjlMlsw ouXjfImgfVDLSBGk86JMhXpBWKgRhcBbU7w9bheDAlKcqWh3hhWJzbNH3sgUw5aBPijZ MzlWoKKge9f/aCrOLo9Xj1YgYhuno2Osf6/Yrr22UXh5x0NeWtXEweUgsAFb/YkvQRNv laCgbrs/24S02oN5fU0y7Vg7rN75DQBuBYuWsREKNTO8NW2klNo8zAau5BGqV72b0ngm bDhwOFA2/gJ8UW0y1lpIzhxwF4jCQK05GFUgFp+zJ4wwrGPLJczUjn7ii0Y6n7txJYeX wB9w== X-Gm-Message-State: AA+aEWYq34POq1aO25N5Rpz39EvEe46qHc89bw0urUAh/joXrGZuiym/ CO7bbbRKrSG1hY1Dm4l3A4RmmawVIRtJdBV0rbMvWD86WWg= X-Received: by 2002:a2e:9e03:: with SMTP id e3-v6mr599217ljk.4.1542701053715; Tue, 20 Nov 2018 00:04:13 -0800 (PST) MIME-Version: 1.0 References: <8454b0ecaf5be60ab602e795eac4bed69f0102d0.1542589838.git.fthain@telegraphics.com.au> In-Reply-To: <8454b0ecaf5be60ab602e795eac4bed69f0102d0.1542589838.git.fthain@telegraphics.com.au> From: Linus Walleij Date: Tue, 20 Nov 2018 09:04:01 +0100 Message-ID: Subject: Re: [RFC PATCH v2 06/14] m68k: amiga: Convert to clocksource API To: fthain@telegraphics.com.au Cc: Geert Uytterhoeven , schwab@linux-m68k.org, Arnd Bergmann , schivers@csc.com.au, Thomas Gleixner , Daniel Lezcano , schmitzmic@gmail.com, John Stultz , linux-m68k@lists.linux-m68k.org, "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.) Yours, Linus Walleij