From patchwork Thu Nov 15 13:32:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 151225 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp6995063ljp; Thu, 15 Nov 2018 05:32:17 -0800 (PST) X-Google-Smtp-Source: AJdET5d0mk6qM5Wvfm5EVamP7XOcnXnx8bK7+fKgujk2rcaAogFEb2SmlEFM0A5+rkdkIo4XOO19 X-Received: by 2002:a63:7306:: with SMTP id o6mr5715594pgc.343.1542288736842; Thu, 15 Nov 2018 05:32:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542288736; cv=none; d=google.com; s=arc-20160816; b=FyJFtLfMe3WM9jZ9EBkQoy55rYzBsNIKLon7yQZRuhVGlz+96vb5+J4yHn0DNAYWAn PwZolthFCm6e62pqKfz8eyiMlxnqwmns4QMOwrz+TdboKCOJTt6t8nJ1aw9tEiCqlvzL WlheYpjxap+gMnTAv5u1I+lchvBCCSKjZdBMvTPFqrOnPAuXheZeMoZdOMbm2ZV/pgQu 0R/d1in1aeCtWHN69HfAQzw2LTr0BPzdsB8XgKeInriLxvUBS3Kz4CZu20Cg4254MCZM noDoOC1hTu0Q+eA1eZzctMyxJNPNDcoC8KaxX6GQLet8ADn4WUsndwO0GpOr4a7oD/ws iZ8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=KUan3OzAdZ8g7FaQ0bp8nq8b/qVWijqdlEjN9w8ObM4=; b=DK/d3Fn7BHLjbn6GGumjpKv/qFPFgI/zgyDtkE1Iju000H1nVCa7LmHF7wlYgnkS+U ZTiYZO5R/f89hVaQpyCP5+IpzKjqnkxUgSmg2VzBDM8GtKdHniYGy+msj+u8fWLnIlKd Zgry82y/gBn+A9JFuEDgr76wjXx11ImuZbQgIWPaok9iPboDnFf1CtAKqJ5Rtn3LANse zS4ZjSpCnWSgiEY47N6Cv+k/6o6lgmneqD8qkvKURX3dF53iWHK6zKBXj+8F1c+cIVEo 7j1+sTo0QCs6b1fkBceZJQWITjSg/ei2m/K6QbCM0JfpKsGDPaspnOAuoKjwZgcSOs7D U0Iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dDGCcTCl; 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 o1-v6si26871517pll.325.2018.11.15.05.32.13; Thu, 15 Nov 2018 05:32:16 -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=dDGCcTCl; 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 S2388371AbeKOXkC (ORCPT + 32 others); Thu, 15 Nov 2018 18:40:02 -0500 Received: from mail-lf1-f67.google.com ([209.85.167.67]:41263 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388290AbeKOXkC (ORCPT ); Thu, 15 Nov 2018 18:40:02 -0500 Received: by mail-lf1-f67.google.com with SMTP id c16so14135822lfj.8 for ; Thu, 15 Nov 2018 05:32:09 -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; bh=KUan3OzAdZ8g7FaQ0bp8nq8b/qVWijqdlEjN9w8ObM4=; b=dDGCcTClUlsV9dWCLEtW5f0S8V5MhLLsNnQeQ45ZkG6zEUFn7nh8Wc3U6lV0BJ8ZUj 6f17EtFTgR49AnhKEhiB1frnjfZw5mmwUxN183kE2UXFkcD8qvRL3Zi3OpWwgMpUol1H neG6lF5wDuCU9pyxjUI8G1fi4cBlmUhi0ZYVE= 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; bh=KUan3OzAdZ8g7FaQ0bp8nq8b/qVWijqdlEjN9w8ObM4=; b=K8tpzp+wgsXxp5UDmOZz4ecpnNHJOrJu8zbfQR8LoUb2AfBlkxQi5hRO518+uO0hxV 5KzPW6VuezO4HRTFkODuWwjYyNrEeFOg8ObzdkF4kDa+W3cmhmAZIqDgOBfgWgzIWB81 E+n/CMKXzjfPgAk05SCH3CJlanDJUsf+M3sHnLrANoI6G5TE102pjQW/nSAYyZifQhOm QIM3N+P/xfRJBVT5uT6ibMpZvErsqOz6RUNyOwrSjwyKEFlId9kY9m2moj4Hy5qup0pn zDl4ah+zfLTvvrRx499KDRzOX6EYgqnjTqIJWM0dae0cyDdS5LEBGFlT3PCHgmlRZaCb HV8A== X-Gm-Message-State: AGRZ1gLnWsiJj7eK8Wy0cT4SUB1og/n+MBHpJVz7qACeUyA7tlQhtTYX JeNc7SD3kr3D9e5jg2UKM3cnfH3TO6jwhQ== X-Received: by 2002:a19:f813:: with SMTP id a19mr3325289lff.67.1542288728568; Thu, 15 Nov 2018 05:32:08 -0800 (PST) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id f76sm4291949lfl.74.2018.11.15.05.32.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 15 Nov 2018 05:32:07 -0800 (PST) From: Linus Walleij To: linux-kernel@vger.kernel.org, Daniel Lezcano , Thomas Gleixner Cc: linux-arm-kernel@lists.infradead.org, Linus Walleij , Baolin Wang Subject: [PATCH 1/2] clocksource: Demote dbx500 PRCMU clocksource Date: Thu, 15 Nov 2018 14:32:02 +0100 Message-Id: <20181115133203.28567-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.17.2 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/clocksource/clksrc-dbx500-prcmu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.17.2 Reviewed-by: Baolin Wang 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