Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757046AbcK2OFa (ORCPT ); Tue, 29 Nov 2016 09:05:30 -0500 Received: from mail-lf0-f65.google.com ([209.85.215.65]:32912 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754011AbcK2OFW (ORCPT ); Tue, 29 Nov 2016 09:05:22 -0500 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: [PATCH] clocksource/arm_global_timer: reconfigure clockevents after cpufreq change From: Alexander Kochetkov In-Reply-To: Date: Tue, 29 Nov 2016 17:05:19 +0300 Cc: LKML , LAK , kernel@stlinux.com, Daniel Lezcano , Patrice Chotard , Marc Zyngier , Mark Rutland Message-Id: <2F6A5074-F54E-4B16-AB3D-DE7301E363FC@gmail.com> References: <1480421716-30782-1-git-send-email-al.kochet@gmail.com> <1480421716-30782-2-git-send-email-al.kochet@gmail.com> To: Thomas Gleixner X-Mailer: Apple Mail (2.3124) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.home.local id uATE5Y00010027 Content-Length: 982 Lines: 27 Hello Thomas! > 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. Thank you for help. Alexander.