Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3244917imu; Sat, 24 Nov 2018 00:58:25 -0800 (PST) X-Google-Smtp-Source: AFSGD/X4Sw9qY7UN1yQvdyQY5Kl1W0AfYG85srch9stIuZix7BImLkG+xh6ykDAyQ/D76CfIa3/G X-Received: by 2002:a17:902:bc3:: with SMTP id 61mr11054503plr.15.1543049905243; Sat, 24 Nov 2018 00:58:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543049905; cv=none; d=google.com; s=arc-20160816; b=xqOgPACSXiDLAFJkT6TAyXxZgnfmr/upCkF2UXvYlhKTGBRq9j6XJ5y5geFi2G+fxe 9n0qM0izWC0X+4KiOX0f/SM80EjlVLt5BBPcIbHghABBZTCUebV43IBEW6z4B48d0GLd gXluyJ8WDX9ZGMWbnGmKaR2jnzVJHbyuMlKQwHuI418E9tCA0qyJVVlZ1XE8ltakK7jd MWtLeB4fqUAoDb1qAUbrnNUVzgMQIxGz9zNA5LhBU3xGX7xylZ+kvE1AsC8I60Sp373Z L09UmVEvK/okQJPCIGYl3k6gcghAv84Rhos+9MeqsHQFHRf50IqPV4p92L3LIiEREweH sFhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:dkim-signature; bh=RZkyLHU2aNHt1BBAhRCWOt7m4B6ldNg4tf1ZoxGZyf8=; b=yGegUITkVSxqw9AWmgBRx0m+3dnwVR+lQpTv+gBleSXuVsthTYlL54C6JCKI8RjCvB s7Cuz7xtygXncW+zyh+434DZ5IEj9xW8vgRJKd3hiTZBzJU0sh1d/0c4FvtUcaCuE/Ru toC9UmFWUTtfnTweP/4Dbn9/Go3/Kon2er64DQHVF4qijrq6ZslNtJKCXYSB0ikWQCNP MNEJpyMZnCVLpD/ls/nMbDUXqUtFdacsFZBiNqh/oSGJXHq7Qhfce2AxIgrLA83pxHDy EmqjsetyWjR6C0faQ5pmEAIFAIaNFRleyXksKFMrrac4v+Oz9dhny5YkVS66R5o60U5X jKSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UPtE53q+; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u6si44088783plz.220.2018.11.24.00.58.11; Sat, 24 Nov 2018 00:58:25 -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=@gmail.com header.s=20161025 header.b=UPtE53q+; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729287AbeKXMuk (ORCPT + 99 others); Sat, 24 Nov 2018 07:50:40 -0500 Received: from mail-pf1-f196.google.com ([209.85.210.196]:36496 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729235AbeKXMuj (ORCPT ); Sat, 24 Nov 2018 07:50:39 -0500 Received: by mail-pf1-f196.google.com with SMTP id b85so4018263pfc.3 for ; Fri, 23 Nov 2018 18:04:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=RZkyLHU2aNHt1BBAhRCWOt7m4B6ldNg4tf1ZoxGZyf8=; b=UPtE53q+bVhPcUVyETHMCLSQcWNU5e8j1lH/hWR6vYEza7QBD0DyIFRwQwAbqJZFM9 ssxrYilx7/xAkkr+hiv+Snpeg0QWdKQ+2y3wQhn5l/+t/EmG+iYC3Anh971DA/pqVp3W YzCZjL7ICwWwCocZ9IxxtHME0InduEjXj2uLo4nHCnkbjASDsvUPcmTaCc3Khy439pNb A4dDSe7Yjlz3UagaSXuQowbbDoc6c23CTWacxeHzXAAI317UhoWoio6xiuD4yqgzILRN iMpaHYv62p55NsyHBqRauET1z1dCXWwCkuB5Y62nWFo+eMmUMmhaXl9hm2SvbHt6KUNC j+qA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=RZkyLHU2aNHt1BBAhRCWOt7m4B6ldNg4tf1ZoxGZyf8=; b=QDdsmdTFAWnXgtsyfVzWN7d2cofIVijJfly0MPxiNANaWnR5rHrws6BmzuUiztqBkP 9PSZ8mUUyLfvjG0uzigJ+LBE4ZAHY2i9XrjWnxxNnGGjDXZI6+LOTayuDEwSeA5rj9b/ gNIhCeNyaSgKagpjhG91HeHRIeD5Iyf38F/+hpcnxfACc+AvBhHwwc/07nQSUS/Z7im0 jxrjO7YverVeJsPT5FDVx+Y02bcPzJzkHY+eW3Z9L58uO+Miqa2HMKznxO3G/uxNzRy3 +sIgyWXdsHYUfceE2rNb9fiqTPR7dktbjSY0NwHAQpQEbIgWnNQEA7a8e00dv4PcuUj3 f59w== X-Gm-Message-State: AA+aEWY5VkdHe5ZJi/c97M4WA50XwSfJ/aAr3PSGw435FyDmcv4urrQ3 KqFQyh8l6wVNnsnVCp44euIoI/G6u6c= X-Received: by 2002:a63:4745:: with SMTP id w5mr16648121pgk.377.1543025044284; Fri, 23 Nov 2018 18:04:04 -0800 (PST) Received: from [192.168.1.101] (122-58-176-92-adsl.sparkbb.co.nz. [122.58.176.92]) by smtp.gmail.com with ESMTPSA id b26sm25598576pfe.91.2018.11.23.18.03.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Nov 2018 18:04:03 -0800 (PST) Subject: Re: [RFC PATCH v2 07/14] m68k: atari: Convert to clocksource API To: Andreas Schwab , Linus Walleij References: Cc: fthain@telegraphics.com.au, Geert Uytterhoeven , Arnd Bergmann , schivers@csc.com.au, Thomas Gleixner , Daniel Lezcano , John Stultz , linux-m68k@lists.linux-m68k.org, "linux-kernel@vger.kernel.org" From: Michael Schmitz Message-ID: <9035c015-85ef-6d14-d12c-f1d5002ee49a@gmail.com> Date: Sat, 24 Nov 2018 15:03:54 +1300 User-Agent: Mozilla/5.0 (X11; Linux ppc; rv:45.0) Gecko/20100101 Icedove/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 20.11.2018 um 23:02 schrieb Andreas Schwab: > On Nov 20 2018, Linus Walleij wrote: > >> Yes you already see the same as I see: this chip MK68901 has >> no less than four timers. I bet the kernel is just using one of them, >> out of habit. > > Note that not all timers can be used freely. Some of them are hardwired > to generate the clock for the serial interfaces. Timer A is used by the DMA sound driver - no workaround possible there. Timer B is used by the framebuffer driver, but it's used only once to reprogram the screen base address at driver init. This one could potentially be used after framebuffer init to improve the clocksource accuracy. Timer D is already used to generate timer interrupts used to poll the ROM port network card / USB adapters. This timer is initialized early in the boot process, which prevents using the MFP UART as serial console (something that I hadn't properly considered before). I'll send a patch for that. I'll also consider using timer B or timer C interrupts instead to poll ROM port hardware. There are no serial drivers anymore that could use the MFP UART hardware, so that point is somewhat moot at present. Cheers, Michael > Andreas. >