From patchwork Tue Dec 18 21:28:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 154179 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp4202794ljp; Tue, 18 Dec 2018 13:29:17 -0800 (PST) X-Google-Smtp-Source: AFSGD/Ub0WxZ2355ZV/ud36mgwjiH9Z7cCqY7l7u9IsmwT6fJEhgLgpSLfCrjYHpOIAEZJTkoyq/ X-Received: by 2002:a17:902:76cb:: with SMTP id j11mr18395355plt.179.1545168557083; Tue, 18 Dec 2018 13:29:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545168557; cv=none; d=google.com; s=arc-20160816; b=aQFVvxVdgrKCbxl4qUXvtSSNJuMS/yf3Zu8PRI5Uvng9gH7G+u+KJaENR0smgXlHaF ZJJEV2kA8dNkUPASoZzr9D0uVzTTWYR96oBwanE09wcE+oCMBAHAOuRlrolqGZAiIKa3 KPUmIEWH23jbpdxoKt+Xs/70OCuSVjbvW7lwbFTQcXnb+mRLvNoJrB+Wh5Ow/NwmACu/ EXeVkuPQ46uPka1kd/T3P5NUpawjEvnxulD/WOYZ0K43t2BjAkEkWu3cpkjAt4OFvmiP bg6B05aLnDqPTX7k5xK8GDc1N21qWTUlbuapy9NCntBg1vWBIIlzlheP0cXfqRrDqvSy alPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=Nqyu5M43GadzwCnPRoa+RxuMcREhWjlFWdJLqMc9jGQ=; b=AL4CqsoqSjxGLOluREXoPPBIdrfC6niDc9EQ4P4MbNHWQipoTL1RapVRrwbl8hQWju 7I6rUAW12Xzn5XiQasmRDgRwbAEBd5cbSftpmEIS87+CWkYa2uQx068S0DWedapAGzKV vu2eAZOMjQbmg3tLUpdmKFzpCiZ1uMK8LPijZTac7c8exeD+HvW7gLMfW+lRYAjzIpv1 oif5r8dE31Ssl55GbKcGwYgvoLCM+njFC5zFpdi7dulIyTUN3JrO+jr38+XiUC7DEE77 xMDdmxrUFUQhP1947Wt1wHO425r88PF6GBWUqFoY+nGFQUGqd0AMwHI5SnElhA9KyOji qgKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=j2atdPES; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g11si13942978plt.4.2018.12.18.13.29.16; Tue, 18 Dec 2018 13:29:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=j2atdPES; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727385AbeLRV3Q (ORCPT + 31 others); Tue, 18 Dec 2018 16:29:16 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:41651 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727355AbeLRV3N (ORCPT ); Tue, 18 Dec 2018 16:29:13 -0500 Received: by mail-wr1-f68.google.com with SMTP id x10so17403607wrs.8 for ; Tue, 18 Dec 2018 13:29:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Nqyu5M43GadzwCnPRoa+RxuMcREhWjlFWdJLqMc9jGQ=; b=j2atdPESHEFV/4g++6362Dn0lTQBNnxnzH4XmBQYNUrIb3mlUtWIFagD78R4S+HDSF LvkWqPFfyY4TNFGARRcyLqyLu4VHm09uBr9nQkBuef32lBBoIxl/D3vG5o+5pxKqYBjK Gv4gXvDQ7JBBdHUdPpE4uaB5t480jHwtYBrYE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Nqyu5M43GadzwCnPRoa+RxuMcREhWjlFWdJLqMc9jGQ=; b=BXL091mjzchhcuvXeVk51HojkQryKvxrv+8DPL1x45ZsVHGp2IC/lwUaXY23VwoBty /EYRfVZ5nxsMcC/pZMUkHerhbkhf7zi+oCzustAxoREoAyRQFCWvHXA9Ef/NcI3qXIlX s3kwehRCa0y6T9bhQz/GvHDUjQK+NvjZyIjR8BtG7c6l750SCMKAchVYPen9hqsZpCmC yKyaN4MclAeIAY8RpuZhvR3rmWKHm9/oMcytxbz4iLNV4ZVKq2JU+kEKoEaZ9IacPbyv +jiSE/UoF0deur/jYhq4jwg5HaWVDcosnBAPKGFPgWLSO65FlGRj1emIl+sS/d9Ld4dn Oc9w== X-Gm-Message-State: AA+aEWYC89qJlBeO6yFcldtxNSeI1ycXWzZJDvQ3bhJQXkAmgUBOKh1o 3w4uuh39EaYCfoNiCwuToSEz3bMHsLI= X-Received: by 2002:adf:e5c4:: with SMTP id a4mr15315181wrn.157.1545168551762; Tue, 18 Dec 2018 13:29:11 -0800 (PST) Received: from localhost.localdomain (105.50.92.92.rev.sfr.net. [92.92.50.105]) by smtp.gmail.com with ESMTPSA id o4sm4153485wrq.66.2018.12.18.13.29.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Dec 2018 13:29:11 -0800 (PST) From: Daniel Lezcano To: tglx@linutronix.de Cc: linux-kernel@vger.kernel.org, Linus Walleij , Baolin Wang , linux-arm-kernel@lists.infradead.org (moderated list:ARM/NOMADIK/U300/Ux500 ARCHITECTURES) Subject: [PATCH 02/25] clocksource/drivers/dbx500: Demote dbx500 PRCMU clocksource Date: Tue, 18 Dec 2018 22:28:20 +0100 Message-Id: <20181218212844.30445-2-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181218212844.30445-1-daniel.lezcano@linaro.org> References: <20181218212844.30445-1-daniel.lezcano@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Linus Walleij Demote the DBx500 PRCMU clocksource to quality 100 and mark it as NONSTOP so it will still be used for timekeeping across suspend/resume. The Nomadik MTU timer which has higher precision will be used when the system is up and running, thanks to the recent changes properly utilizing the suspend clocksources. This was discussed back in 2011 when the driver was written, but the infrastructure was not available upstream to use this timer properly. Now the infrastructure is there, so let's finalize the work. Cc: Baolin Wang Signed-off-by: Linus Walleij Reviewed-by: Baolin Wang Signed-off-by: Daniel Lezcano --- drivers/clocksource/clksrc-dbx500-prcmu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.17.1 diff --git a/drivers/clocksource/clksrc-dbx500-prcmu.c b/drivers/clocksource/clksrc-dbx500-prcmu.c index c1b96dc5f444..4054539fe066 100644 --- a/drivers/clocksource/clksrc-dbx500-prcmu.c +++ b/drivers/clocksource/clksrc-dbx500-prcmu.c @@ -46,10 +46,10 @@ static u64 notrace clksrc_dbx500_prcmu_read(struct clocksource *cs) static struct clocksource clocksource_dbx500_prcmu = { .name = "dbx500-prcmu-timer", - .rating = 300, + .rating = 100, .read = clksrc_dbx500_prcmu_read, .mask = CLOCKSOURCE_MASK(32), - .flags = CLOCK_SOURCE_IS_CONTINUOUS, + .flags = CLOCK_SOURCE_IS_CONTINUOUS | CLOCK_SOURCE_SUSPEND_NONSTOP, }; #ifdef CONFIG_CLKSRC_DBX500_PRCMU_SCHED_CLOCK