Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3646059pxp; Tue, 15 Mar 2022 03:24:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzW7u5gwQy1YWDiwx1yysttAa+V61W9GfOtbDorEr2qrWeRf7IcZJwoykb4vyZkjve2PfWQ X-Received: by 2002:a05:6a00:851:b0:4f7:68db:51bb with SMTP id q17-20020a056a00085100b004f768db51bbmr28283644pfk.74.1647339852350; Tue, 15 Mar 2022 03:24:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647339852; cv=none; d=google.com; s=arc-20160816; b=u0SmnG1aPqtZzf300WoTerm6mT4r9fxO26oPeEBgS35EniLXpQcSBpQZdQDUNT0m0R JXJxY5AhSfONKNoFaWspw7aPnfiTvFsiFhIrxEmkagcom2AWxfDH2FToI29Ij39AIFgM PVeAHCBl18CumfIsOKsZIoBakv/YogntNtx1Uypr8oLFApLBmYltOLTRX5JwFzc8Z21q 9Xv2aZypyzoJ6GYs7+nfv7Ul5OW545YsDVKr0ktH/V2mKGElplO4i0XNTNwGrsJ8IKNa gBfGpPG3XkcE+s7snDoLtVndnOcNFeOJp+W0MdXSRvZHkAGwYmvW1V2+DH49mqkg5R7R Htuw== 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=wN4CevDf67oADYGI1UEhms/ZgQxybNFcbh4TO+FRVI4=; b=PZgg9eocrEM5AwaMHkgBh0AsVCZhJ5XsntyKvhAvLvl68PglJCfIPa8gVeQ3l6T2vW VRXXcAcu4z7M4o9OLZ2nfFsudB8fX8GEU+hQqzOa/G4X8Sw4JCQvwArZDTJb834qJ9Gp JVA3zWzf/1K/FSotAt2YceCFEWNv/TKCiGL6kYCLy1+5h5b/0khmd9xdwV/gZLyMuMul nVts5x+4X3NzN3cRZxdDynvUiyb4Kp85bdVVWtaI0M6Qj2O9IQiGKOHwt2Ui7+NL7uIK SBjuahoPEL6oWWhxwl1MkVCI1Fg2CeZ/gSAmv4zPxdLTFfJUNTxiZBFq3ctKRW6bobEk jfcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=jYuvUznK; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s135-20020a632c8d000000b0038133fb2dd4si6270051pgs.587.2022.03.15.03.23.59; Tue, 15 Mar 2022 03:24:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=jYuvUznK; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S233032AbiCNJa5 (ORCPT + 99 others); Mon, 14 Mar 2022 05:30:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238049AbiCNJ3s (ORCPT ); Mon, 14 Mar 2022 05:29:48 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F067B443FD; Mon, 14 Mar 2022 02:28:32 -0700 (PDT) Date: Mon, 14 Mar 2022 09:28:30 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1647250111; 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=wN4CevDf67oADYGI1UEhms/ZgQxybNFcbh4TO+FRVI4=; b=jYuvUznK8Fl/gd7ZDp4+aGnhuNdCpmNNVWQFOTk7340qn+H6ap+GvoVnBnB45kkNhorsbH 7Eg2sRuo21jjxDVq/RvwdtaGbNTkpQNfV5sBp/DXzcTe18BOU30JmEKJnnOmJba5G2NQQ2 ASI4Hkziyy7CP9aUp0eDFGbjE8yQoGdBf6zNoxlNen6SY8GzwMtubnchHBkT30T6tCRPN9 3uTZbyTDX5IRrkLxe0/dPLmKsNQEfajV0tiR0KLCeYNJjgGLM9E7jiN+4+h+4Brpa9fIJ7 GPwX/Lmo6eqeKH4XHWMrx9E51aLykvYdm8yhCRZ+mIWFkBMkQuIA8JxiMM3JKA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1647250111; 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=wN4CevDf67oADYGI1UEhms/ZgQxybNFcbh4TO+FRVI4=; b=gaU9bNPKv7Vaysoc8kGclD1vGSV3yMYISYw3fF8/c6pmysCQTIGsFW90tCbN9/rUp6PiG+ T9UZAYJV3OWeusAw== From: "tip-bot2 for Peng Fan" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/core] clocksource/drivers/imx-tpm: Exclude sched clock for ARM64 Cc: Peng Fan , Daniel Lezcano , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20220105124304.3567629-1-peng.fan@oss.nxp.com> References: <20220105124304.3567629-1-peng.fan@oss.nxp.com> MIME-Version: 1.0 Message-ID: <164725011047.16921.16930641794301120667.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: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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: 10720e120e2b1d66172dccb06eb4f346a665cca6 Gitweb: https://git.kernel.org/tip/10720e120e2b1d66172dccb06eb4f346a665cca6 Author: Peng Fan AuthorDate: Wed, 05 Jan 2022 20:43:04 +08:00 Committer: Daniel Lezcano CommitterDate: Wed, 16 Feb 2022 14:43:30 +01:00 clocksource/drivers/imx-tpm: Exclude sched clock for ARM64 For ARM64 platform such as i.MX8ULP which has ARMv8 generic timer as sched clock, which is much faster compared with tpm sched clock. Reading the tpm count register in i.MX8ULP requires about 290ns, this is slow and introduce scheduler latency. So exclude tpm sched clock for ARM64 platform. Signed-off-by: Peng Fan Link: https://lore.kernel.org/r/20220105124304.3567629-1-peng.fan@oss.nxp.com Signed-off-by: Daniel Lezcano --- drivers/clocksource/timer-imx-tpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clocksource/timer-imx-tpm.c b/drivers/clocksource/timer-imx-tpm.c index df80641..60cefc2 100644 --- a/drivers/clocksource/timer-imx-tpm.c +++ b/drivers/clocksource/timer-imx-tpm.c @@ -150,10 +150,10 @@ static int __init tpm_clocksource_init(void) tpm_delay_timer.read_current_timer = &tpm_read_current_timer; tpm_delay_timer.freq = timer_of_rate(&to_tpm) >> 3; register_current_timer_delay(&tpm_delay_timer); -#endif sched_clock_register(tpm_read_sched_clock, counter_width, timer_of_rate(&to_tpm) >> 3); +#endif return clocksource_mmio_init(timer_base + TPM_CNT, "imx-tpm",