Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757372AbcK2OMe (ORCPT ); Tue, 29 Nov 2016 09:12:34 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:51226 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754867AbcK2OM0 (ORCPT ); Tue, 29 Nov 2016 09:12:26 -0500 Date: Tue, 29 Nov 2016 15:09:46 +0100 (CET) From: Thomas Gleixner To: Alexander Kochetkov cc: LKML , LAK , kernel@stlinux.com, Daniel Lezcano , Patrice Chotard , Marc Zyngier , Mark Rutland Subject: Re: [PATCH] clocksource/arm_global_timer: reconfigure clockevents after cpufreq change In-Reply-To: <2F6A5074-F54E-4B16-AB3D-DE7301E363FC@gmail.com> Message-ID: References: <1480421716-30782-1-git-send-email-al.kochet@gmail.com> <1480421716-30782-2-git-send-email-al.kochet@gmail.com> <2F6A5074-F54E-4B16-AB3D-DE7301E363FC@gmail.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="8323329-94948636-1480428586=:4358" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1459 Lines: 36 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-94948636-1480428586=:4358 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT On Tue, 29 Nov 2016, Alexander Kochetkov wrote: > > 29 нояб. 2016 г., в 16:42, Thomas Gleixner написал(а): > > > > The frequency change would not only affect the clockevent device, it also > > would affect the clocksource. So the patch is incomplete, but see below. > Looks like kernel disallow change clocksource and shed_clock rate at > runtime. I haven’t found any function for that. > > > 29 нояб. 2016 г., в 16:42, Thomas Gleixner написал(а): > > > > That's broken and the clk framework should keep the CORE_PERI clock at a > > constant rate by reprogramming the divider of the CPU clock. > > Thank you for the hint. > > > Assumptions w/o real impact are a perfect reason not to apply that > > patch. This want's a proper proof that the global timer really changes and > > this hackery is required, which I seriously doubt. > > It really changes. It changes like it changes for smp-twd. I guess they are > driven by same clock CORE_PERI. If that happens then the whole thing wants to be disabled on those misconfigured systems and not just hacked for nothing. Thanks, tglx --8323329-94948636-1480428586=:4358--