Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp373793imu; Tue, 20 Nov 2018 00:17:00 -0800 (PST) X-Google-Smtp-Source: AFSGD/WNMCWd9e3m6nBYV/W9UYyvnrhD66IXTtcPHWalysGhdPK/HS+zKuuMEWvrbqd7oVXYX/lH X-Received: by 2002:a63:7556:: with SMTP id f22mr944193pgn.231.1542701820134; Tue, 20 Nov 2018 00:17:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542701820; cv=none; d=google.com; s=arc-20160816; b=FeNckryfLyy+X9e6eg54r3gWHMES70XIX4jDxbf/4OIKi0oZZnyL9IUepqMizMLZYA wmsm0WicODZrBXmhJ8JWrSb/zLxqJF6g+ISkSao956yjFGvtOHanrRsg+CC6ZBInKByl lX03Ry7VDBqSzPdHsTYGRQiv3NeerJ7MzJ8AlQ7f8RzhiXRtVel5AHEFqtjfhrYNiIx1 0E3JTZlCnQUGPM10chgsRgWuJTUDfdtPv7WXY611ZZA5/MD5FGvqQNu5RopXRMFCKB8j yvTPoH/PWOoujofAAB0ZK93GSGgpgq8IHn0fT9eylwhG0To53ZIPv5IPbCENnd5T+Gow 2AIg== 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=ZMFDLP47LVR8jcbrIpBlq/7VZs4+TPJy4W+Qq+E/LBE=; b=RQHOV5E8ailgaRUizoqan5EPzWQikKjKisELylG5fHGSTOqLxpiQe9j6fzgB8PfrrK jKITncLbuSeVbOBH5K1lFCP/sJNUp2FCM2KhLwTioxz4wRCX6Ul6pK5if0PRTiI7mJts xTunaI864hOSj2c/dHi4kHLkKp0ZVVbPLD2MHmktkV9e257gFiUa2kv4pInOm3avBIAi bNduDhn503kX2xctdcBXsev6tIXjv7rWMdoP6fiHKjOISlEmZpSO83pxmTXY3TjijMAb nNAV0tLprv+8/XUriGgm6yE7hpp/JCFyohO1gGLJ0hO5ZL7p1GvsidYG6czoNie08TB3 nHww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ajL3n7BS; 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 p2si18594583pgh.474.2018.11.20.00.16.44; Tue, 20 Nov 2018 00:17:00 -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=ajL3n7BS; 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 S1726559AbeKTSnr (ORCPT + 99 others); Tue, 20 Nov 2018 13:43:47 -0500 Received: from mail-lj1-f195.google.com ([209.85.208.195]:46422 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726540AbeKTSnq (ORCPT ); Tue, 20 Nov 2018 13:43:46 -0500 Received: by mail-lj1-f195.google.com with SMTP id v15-v6so818097ljh.13 for ; Tue, 20 Nov 2018 00:15:55 -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=ZMFDLP47LVR8jcbrIpBlq/7VZs4+TPJy4W+Qq+E/LBE=; b=ajL3n7BS+3i1kGrs3ZfvrFYv6CHRqASUI+kStaQ6D8UD/pew0UkpfPAShTb0rNkFPh VGkGDOxKbRRCaKeVtKnMoXMi3pfHWfq9eUfTeHlteTpITjEbh4Ye9d0cpDkXoCdgZQLN +N5vYvzQJ266Z1ln+KW/39ALLMYbIOil2YXUU= 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=ZMFDLP47LVR8jcbrIpBlq/7VZs4+TPJy4W+Qq+E/LBE=; b=GyHo2nfPiaDlJ6K8qdvA2NIE3r9rmPoIyDgX6hUsTWxKcGjNR21LNF6WC6CKWYxD7m 0NEYpZIodnKclFegzOSEF+dJ3IvF4/Y1MMyy7XG9dBeH3xncfni4znQ6oEzvgauQ/CNi 8nGF6zjwy6zpfMSK3QebNbMDkBrtzYpoaMn8RuEMg5q/vhquURTGYrZOhgBvvQmzja8+ wWmdkU3j2e1TvPC+7ZXvJCeDXhVn4cjzGElCXqXR8bs3xUIwm/Mzd9MQNcbmqGgAtuDl Y+QvAO8/Pb2TuSSW8Ycu5pWOZ52RxpUTh3APU4oVlLjbDggSmNvXZFjJVqwNipzVPW/N wVCw== X-Gm-Message-State: AA+aEWY7sflb0ob436PyULE2H3KmW7ug5E8jWiEzBafEpAdZdnAhTOmG +hAijFf+McKzgUGkNo8WOnRSgVNY2PxUzDslxliVlQ== X-Received: by 2002:a2e:9849:: with SMTP id e9-v6mr602983ljj.9.1542701754441; Tue, 20 Nov 2018 00:15:54 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Linus Walleij Date: Tue, 20 Nov 2018 09:15:42 +0100 Message-ID: Subject: Re: [RFC PATCH v2 10/14] m68k: mac: Convert to clocksource API To: fthain@telegraphics.com.au Cc: Geert Uytterhoeven , funaho@jurai.org, 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 > Tested-by: Stan Johnson As noted for the Amiga CIA (which is pretty much a sibling to this MOS 6522 VIA) this chip also has two counters and could use one as clocksource and the other as clock event. Again I bet this is just using one timer out of habit. It will be an easy feat to make a clean clocksource+clock event for this hardware as well once this refactoring is complete. Yours, Linus Walleij