Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1701172imu; Wed, 21 Nov 2018 00:12:20 -0800 (PST) X-Google-Smtp-Source: AFSGD/WaTxdqt23DNs3gnVHvdwI7Qkqbs+Aclo3uGSrn2ysr+/DJh9E29kDW9rJFZZVm6iWT+WiN X-Received: by 2002:a63:ff62:: with SMTP id s34mr5065380pgk.325.1542787939979; Wed, 21 Nov 2018 00:12:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542787939; cv=none; d=google.com; s=arc-20160816; b=u7+w3vseXDvgQt68skB/MPKLs36VLig2lFlUmZEUQYjrq4whyhZDEutMbu4Qdy4A9m A2cf5FLbN+sphP9cGTyu+W0BZoNAgw3A1RbWzMuaMgXa39lIDwnxGjRc5XK7WwoPaekt oN18nLSRcdDUvTXKpa4frqxYhuyUkVS5efZd61R4Y/x7iQzBLhVU+TiMH2756kESDHVp 3uN0vXZFGv959txGFv0UrHqas3UCxg9LJ1kh/v2IFuu9gXt+1XjoTsEJJJwuU5Bvd59d yXV12jZ0bZSYPMQK+36NpbXgOu6PdMyguWUTI/HAL4aTcJ8zadPL9ns3DkLvvBNLcN7v /pfw== 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; bh=oZOcTZjPYZsnpOdOWnXFo0vtIXWLgf7MyMaLFbnoQPw=; b=jvIFMTBk8I5XAD0gOtaejuTnKtfHQcwkQR9bxuhpCrvFx/8DyolG8EBzz9KqcILJ1Z JNwBR/vZ9ajAk88FGhiBTzbmgaDtEQSGf7NQk5VAbRfjnu8UTdWZrksyNKuMDWvwD8ID jD4CNVsap9/94aGcLjl+GyYZj66j9FzYJ1Cah06+tAQIXEVImvBpvj7fXRuIiDGOLPFG jvw6V9hslzPpq5Q9+WHWIAsD49kGV22iErbz5dpTa74InEVLwFviWMuiAquXMzqktKwr FkFWhq5ZpqLM7MMMSjK3Gluuap9J04S02W8HWpEujgjZR+N5M/GBzciNhmpu2zd8284X Of/A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v19si22565815pfa.80.2018.11.21.00.12.05; Wed, 21 Nov 2018 00:12:19 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728490AbeKUSo1 (ORCPT + 99 others); Wed, 21 Nov 2018 13:44:27 -0500 Received: from mail-vs1-f68.google.com ([209.85.217.68]:36645 "EHLO mail-vs1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726195AbeKUSo1 (ORCPT ); Wed, 21 Nov 2018 13:44:27 -0500 Received: by mail-vs1-f68.google.com with SMTP id v205so2732178vsc.3 for ; Wed, 21 Nov 2018 00:10:56 -0800 (PST) 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=oZOcTZjPYZsnpOdOWnXFo0vtIXWLgf7MyMaLFbnoQPw=; b=gfVupAC6n3vOGP2es/Thd69hoEJxWzFcCvn24EfnXCuIgROKS/+eOBvAyN7h2LlCr2 STKAtUzczIjHlXA9XRxM49IRgVvBXTE7UZ4fLOUtYWPfejixlFrrUN2ZV1D/sxT8X3GU FjlUNirhoYrnUIGNbmi+t7BZl4wqBO6kUA9DZII9S0ytGb7MwnyNewYNzK9D05KMVVvd 45T3kTILKEkChDb9b4sfxw68aTuH9nQjLRGPhPYX68HblaoMeYw6lHM4GdB2bQKcUI7h QQNK59iZuANcbTBdOnTT7jcAwr2Uc95ESdePsQjvifIqCEDWUq7J20bqJHc1jXSqEaU9 Y3XA== X-Gm-Message-State: AGRZ1gLDSQkLM7gzh96qr9ykXkinaySkGot7bCOzxJYurUf1DB+6T0ME HHoVBW4N3CRRcFV3DGjMfImEVEFPjhCrMe8lkioG+A== X-Received: by 2002:a67:b60d:: with SMTP id d13mr2387135vsm.152.1542787856198; Wed, 21 Nov 2018 00:10:56 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Geert Uytterhoeven Date: Wed, 21 Nov 2018 09:10:44 +0100 Message-ID: Subject: Re: [RFC PATCH v2 09/14] m68k: hp300: Remove hp300_gettimeoffset() To: Finn Thain Cc: Kars de Jong , Philip Blundell , Andreas Schwab , Arnd Bergmann , Stephen N Chivers , Thomas Gleixner , Daniel Lezcano , Michael Schmitz , John Stultz , Linus Walleij , linux-m68k , Linux Kernel Mailing List 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 Hi Finn, On Wed, Nov 21, 2018 at 12:13 AM Finn Thain wrote: > On atari, the 68901 counts down to 0x01 and raises an interrupt. On mac, > the 6522 counts down to 0xFFFF then raises an interrupt. No idea about > amiga (Geert?) -- this has to be handled correctly to get a monotonic > clocksource. I'll fix this in v3 (where the information is available). The docs state that the CIA generates on interrupt on underflow, so I guess that's the same behavior as the 6522 VIA. Unfortunately the 24-bit ("TOD") counters in the two CIAs run from HSYNC resp. VSYNC, which depends on the video mode, and thus can't be used as a monotonic clock source. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds