Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1644662pxj; Fri, 18 Jun 2021 11:33:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0Sqsi7XUnQOS7jDi5AHMTgGelxpO6eRdsyi631KzUFZlWWqib5VG5g1VngkaFZo2bQtGX X-Received: by 2002:a5d:804c:: with SMTP id b12mr8955204ior.15.1624041228706; Fri, 18 Jun 2021 11:33:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624041228; cv=none; d=google.com; s=arc-20160816; b=xnzLiQB1T9NwNdNFLlPbiee5o0CtfgeTJFvayrjYXKtNBNSHiPHhK/JDjQZ722bsc9 9/Gjxy1t0RHaDjOrSPc47U/SojdTV2UXB6naphNhCzDSgkjjUsk9Uu/6E4yBFJw/DJfl iPWAY96ZZbmekEqdlxx3JnXEDQ8hagzDrFyStUUtVqLDbClHyqiHzcVwGe2GXGYPyrLW BsKltlRZooDQYj65JOR/SfFY4ErDnJ8ADNzrjPCuF7CCdxYk5RlhE9/cnVMuwuPcF/UQ qF0wXMqheHK3h3frm62KuIQt11xnOyiemex5wJcqmMr3knTCdS1RaqLM1HcktwMkyaOr PhHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=ADz+raE3UC3dmf6KgIT/Yuyg5O5AJCFh7zi6fdNcdH8=; b=MaIetAqBJ1mVdEyARpUT38AS9u+Jcep8B2q0jDpl3e3R7n/JVEqVkgpD4RVZZWT840 84DCCHH5CRRQR8kr+msLVRz5nQHMrVpNf4rJmAz6d5sJOmPBeAjg8nRvdY+bBedpnUhq RJvfpuYiesOWD7sga3lLNcHZzpNPICcBT+enXyKE/qZKIosNd7g4KP+9P6lsIH2PE6jU SaceMIku5kHs7kB2tbxbso1xLu0EO4vr/o3dm4uM4Vt9EZurIsyQOGxHBsfnGNA938uS /ZJuAAkwrKXkvQPEVWfSWxJfOb4hKfJvYH2IQ1nSyOUL6awyVGi6az6YEVmRu4xFG8tN 1vug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=olgar+yJ; dkim=neutral (no key) header.i=@linutronix.de header.b=QpZb+cBE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g5si1939683ilk.102.2021.06.18.11.33.36; Fri, 18 Jun 2021 11:33:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=olgar+yJ; dkim=neutral (no key) header.i=@linutronix.de header.b=QpZb+cBE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235692AbhFRQF7 (ORCPT + 99 others); Fri, 18 Jun 2021 12:05:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232922AbhFRQFu (ORCPT ); Fri, 18 Jun 2021 12:05:50 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC9B1C061574; Fri, 18 Jun 2021 09:03:40 -0700 (PDT) Date: Fri, 18 Jun 2021 16:03:38 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1624032219; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ADz+raE3UC3dmf6KgIT/Yuyg5O5AJCFh7zi6fdNcdH8=; b=olgar+yJ5iIIDxcWga1dowN6bGdsiWYCHaHncd+yDJzuprWCdiYT+gtx6XtXbw1czMQRly IwY56pkeEtVCXPJBg7ZkD5OSeB0JPCLHpz35XRjlID3+90o0A6275iyyClgX1ltKWkrQI7 yNeH6A//4kwGZ68/G/D5F3DXnBzPajM6zdCtxqBOiDTUF39cq8Xds/FjTfpWcTfJIl/B/3 C8d7pBREuTJ24org5LvWHstL+8x7Y71MKrpF0rjOM/OewSArRmJ2xOa7jI1G708QLyJQ5c 3QfgXNwnEgzCtgWFC4z9bUsvqn5qQLlff6Kxgf7kR2UyFSnH1/OkDm4XFgQCPQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1624032219; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ADz+raE3UC3dmf6KgIT/Yuyg5O5AJCFh7zi6fdNcdH8=; b=QpZb+cBEiR0Q1xfrKysy3c4IyZG0gEsBvKwNyFll4xJ1RpBhp5gceb5hX15crPwF9GJekv mQ5yVX83uBcBPCBg== From: "tip-bot2 for Andrea Merello" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/core] arm: zynq: don't disable CONFIG_ARM_GLOBAL_TIMER due to CONFIG_CPU_FREQ anymore Cc: Andrea Merello , Patrice Chotard , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Michal Simek , soren.brinkmann@xilinx.com, Daniel Lezcano , x86@kernel.org In-Reply-To: <20210406130045.15491-3-andrea.merello@gmail.com> References: <20210406130045.15491-3-andrea.merello@gmail.com> MIME-Version: 1.0 Message-ID: <162403221865.19906.17203231411813786854.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the timers/core branch of tip: Commit-ID: 68e2215e9d5f5ec8e5ba0158683742932519cad9 Gitweb: https://git.kernel.org/tip/68e2215e9d5f5ec8e5ba015868374293251= 9cad9 Author: Andrea Merello AuthorDate: Tue, 06 Apr 2021 15:00:45 +02:00 Committer: Daniel Lezcano CommitterDate: Wed, 16 Jun 2021 17:33:04 +02:00 arm: zynq: don't disable CONFIG_ARM_GLOBAL_TIMER due to CONFIG_CPU_FREQ anymo= re Now ARM global timer driver could work even if it's source clock rate changes, so we don't need to disable that driver when cpu frequency scaling is in use. This cause Zynq arch to get support for timer delay and get_cycles(). Signed-off-by: Andrea Merello Cc: Patrice Chotard Cc: linux-kernel@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: Michal Simek Cc: S=C3=B6ren Brinkmann Signed-off-by: Daniel Lezcano Link: https://lore.kernel.org/r/20210406130045.15491-3-andrea.merello@gmail.c= om --- arch/arm/mach-zynq/Kconfig | 2 +- drivers/clocksource/Kconfig | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-zynq/Kconfig b/arch/arm/mach-zynq/Kconfig index 43fb941..a56748d 100644 --- a/arch/arm/mach-zynq/Kconfig +++ b/arch/arm/mach-zynq/Kconfig @@ -6,7 +6,7 @@ config ARCH_ZYNQ select ARCH_SUPPORTS_BIG_ENDIAN select ARM_AMBA select ARM_GIC - select ARM_GLOBAL_TIMER if !CPU_FREQ + select ARM_GLOBAL_TIMER select CADENCE_TTC_TIMER select HAVE_ARM_SCU if SMP select HAVE_ARM_TWD if SMP diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig index 19fc5f8..9fa2823 100644 --- a/drivers/clocksource/Kconfig +++ b/drivers/clocksource/Kconfig @@ -360,6 +360,7 @@ config ARM_GLOBAL_TIMER =20 config ARM_GT_INITIAL_PRESCALER_VAL int "ARM global timer initial prescaler value" + default 2 if ARCH_ZYNQ default 1 depends on ARM_GLOBAL_TIMER help