From patchwork Tue Nov 29 16:14:48 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Kochetkov X-Patchwork-Id: 9452635 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id DA87A6071E for ; Tue, 29 Nov 2016 16:18:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CDDAB283EC for ; Tue, 29 Nov 2016 16:18:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C27EE283FE; Tue, 29 Nov 2016 16:18:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 68233283EC for ; Tue, 29 Nov 2016 16:18:07 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1cBl5G-0001sO-6q; Tue, 29 Nov 2016 16:16:42 +0000 Received: from mail-lf0-x243.google.com ([2a00:1450:4010:c07::243]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cBl4I-0001SJ-8w; Tue, 29 Nov 2016 16:15:45 +0000 Received: by mail-lf0-x243.google.com with SMTP id p100so13145375lfg.2; Tue, 29 Nov 2016 08:15:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=hDOu/IvI82QtBa81gsXNetdRMIT5yvxRYQOMBD21EPo=; b=u59Dn4+YG/+MlCaGX0ASvxlKqCs+ofLB/OhR6+BJwr7QJQOIYVITtmjF5kYJlg+k+N /eO7J5orkRSdyyi3piWeQkSxrsq2QuKJr4VJ1kw2HPG9sboHrbI5ekcMo8hITgEhgsis +eRnh5qLMcfBY6Vm1/xq2TVlcQuvrVqvDKcuXFIxlJpN6eIt4YTjBwrM1QxwZD+KCxgJ fp1EdXZwi89+bYm/+2gjyZ+mD24yoEy1/4LOkvcVkUPnHJaqsRpruHVYM1AIP6vV/0F3 2H1JrPyaMKlSp0efpYavRiwC6QcXTGUDrobD26fRgxkbsH38pb/dUGdkB/clKrhiIaki 2UFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=hDOu/IvI82QtBa81gsXNetdRMIT5yvxRYQOMBD21EPo=; b=TWWEeE6wFbTgkSLb0elz2s+7FyX3OmvN/dMPtYx+DIYSkkY38+pv4WyuD1haU888P9 DArqf2bd8KJkHd6Z21Mhd9X/eU6tiW60xNVsaSm9Tsv57ZfwtL2auBRwbx8qo1TYIAjI LeYQSUQiurffMlcl2nd4Lmm/4ftoWTkDdrvmpSU2IzD6OZ3KK2vv5RLGSJ4SWZFjznSR /pNEX2qqVgGAuAocTF01Ut91RHPrnBt9p6WoZoEbn28BtadcHmZvbAdwuLaVSXjF/HCM hn2hn2hn+jCDxp4i7R6INJUOQqABK4iMlOGTrYXTHJcYzZ+E61561penZw8mkklroi+D qVzQ== X-Gm-Message-State: AKaTC01GmTdV6OlCyfkCShdChSD5JCwDb7zHoL5MxZD/wTHSWMIG3PoYuVpr4vCqWBirew== X-Received: by 10.25.17.27 with SMTP id g27mr8791804lfi.46.1480436122253; Tue, 29 Nov 2016 08:15:22 -0800 (PST) Received: from ubuntu.lintech.local ([185.35.119.87]) by smtp.gmail.com with ESMTPSA id e78sm13771566lfg.23.2016.11.29.08.15.21 (version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 29 Nov 2016 08:15:21 -0800 (PST) From: Alexander Kochetkov To: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org Subject: [PATCH v4 5/9] ARM: dts: rockchip: disable arm-global-timer for rk3188 Date: Tue, 29 Nov 2016 19:14:48 +0300 Message-Id: <1480436092-10728-6-git-send-email-al.kochet@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1480436092-10728-1-git-send-email-al.kochet@gmail.com> References: <1480343486-25539-1-git-send-email-al.kochet@gmail.com> <1480436092-10728-1-git-send-email-al.kochet@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161129_081542_640206_A10B17A8 X-CRM114-Status: GOOD ( 11.04 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Huang Tao , Heiko Stuebner , Alexander Kochetkov , Daniel Lezcano , Russell King , Rob Herring , Thomas Gleixner , Caesar Wang MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP arm-global-timer can provide clockevents, clocksource and shed_clock. But on rk3188 platform it provide only clocksource and shed_clock. clockevents from arm-global-timer is not used by kernel because there is another clockevent provider with higher rating (smp-twd). My commit from the series implement clocksource and shed_clock using rockchip_timer. But sched clock from rk_timer is not selected by kernel due to lower frequency than arm-global-timer, and clocksource from rk_timer is not selected by kernel due to lower rating than arm-global-timer. And I don't want to increase clocksource rating because ratings greater 300 used for high frequency clocksources. clocksource and shed_clock is quite unstable, because their rate depends on cpu frequency. So disable arm-global-timer and use clocksource and sched_clock from rockchip_timer. Signed-off-by: Alexander Kochetkov --- arch/arm/boot/dts/rk3188.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/rk3188.dtsi b/arch/arm/boot/dts/rk3188.dtsi index 0dc52fe..44da3d42 100644 --- a/arch/arm/boot/dts/rk3188.dtsi +++ b/arch/arm/boot/dts/rk3188.dtsi @@ -546,6 +546,7 @@ &global_timer { interrupts = ; + status = "disabled"; }; &local_timer {