Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8848593imu; Thu, 15 Nov 2018 19:26:24 -0800 (PST) X-Google-Smtp-Source: AJdET5drLuBfyLzUQo8M4kPFG2QsExA2aKWDjOP5xiNlEJv/giQ3y/1Q57Sqow6k1kT19ifL9yXl X-Received: by 2002:a62:9642:: with SMTP id c63-v6mr9662840pfe.100.1542338784542; Thu, 15 Nov 2018 19:26:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542338784; cv=none; d=google.com; s=arc-20160816; b=d0ShXQpdhPPt4Rn10jpJgeKSXrHGArd5Gwzrmct98FfTqNl7rGr8r5uPppF09tNmQl mvELNZdYCRuJIc7Zlwb8rCiOvldfGwcQjMxMqWFrhB5dzge0uLGEWbzZip9dj+GNeukG kMywemSLYnRFzIBmQRiC9y7ugy8f+AiIBl2ln9qSXp2AJ4ZLTZQQKuebCPm9gPrq8Fls Pd7DbYB6GU1vuZgRe+0NIzTPHbesBPyC6OUkJ5//jiOokzl/bAa4kOJsYdexKsCXQOew B+Ih3erZwKs6/dq25YhjGj5badGaeRCFLY2xL9T7fLuEzm28dFyr0LQgNgbPHUfQH6/g hBwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature; bh=Fa0yXKxosJHyr5fKZzlj1BRx9gJOyGWfdXPzrBU52DM=; b=X1LAe1j4JsJ8Bni0ZKxbVGs+qKUtx64H1SWgikTEvUj4ayajKPHddmuuni2hCUr8PP W3lfJju/TyGslYDPREVOT0tsqOjHVXSC4JbSeEetrvC4mpYQA96cdo+kLtB+4DuruqEL Zt2s/isupwtRAcTMk4mufCxssx+fnGQsl8cZ/dlFKxp13Hud0zaN7vtM/uCLQ0hvBQCn 4U2dKOhzZ3STE1YtY8Ez4ErKXa31lfJftPG1uPJNdFC1WX8m8aaO6tK4W+gLSv0Ru1k5 z2DmrXhP4qusc03FVqLwTMB7H75nF3FDAXSeHIlTSpW8XBbM6EYI/66IVDEIV2oXPOTE zVRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XceORhZO; 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 u13si8210372plq.268.2018.11.15.19.25.55; Thu, 15 Nov 2018 19:26:24 -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=XceORhZO; 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 S2389094AbeKPNfW (ORCPT + 99 others); Fri, 16 Nov 2018 08:35:22 -0500 Received: from mail-lf1-f65.google.com ([209.85.167.65]:45168 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727061AbeKPNfW (ORCPT ); Fri, 16 Nov 2018 08:35:22 -0500 Received: by mail-lf1-f65.google.com with SMTP id b20so15598460lfa.12 for ; Thu, 15 Nov 2018 19:24:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Fa0yXKxosJHyr5fKZzlj1BRx9gJOyGWfdXPzrBU52DM=; b=XceORhZOCr1m76Da2/72Ix/ariKkng/GG5GcoiyBhyLASXdIFZIHu4vTgQIkvr+yJ6 3o7gzGuSD8yQPo5B8WUML1Ko1lFvQAqKMckINR+S+mOKAi/UaOkhsF2tzW8gWJr3JyQs b/8gygzqWIVVYQnJwR3AuNZyfv/z3J6oc1cvg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Fa0yXKxosJHyr5fKZzlj1BRx9gJOyGWfdXPzrBU52DM=; b=OLnDyzwuC4qvqIoZKwqcSeqoGBVLF+FETr+DK/7EOCaSgk7uXamwCRSVvDqPNchS7g X6ozWgGvE83SlOuWI1oGY3bNPiqOlCjg1+rbZ/Q34K7H45OTilD2MRU684+dbXRnzKPE 23T+ai+c9tDYioB7kLE6ZR8SbC+9q5sNxMo6gf9sWU9JkStOxK48d4djA02sD782IvMl YKVDgAf0Rf187Ya8EjJoGKsjiTyudMwE/NN4u1A8XqnEItcdkyvcKDINVqUdTJEn5Hb1 6bi1JY8YART2N4Z1J0+Iqe3FSJdZtopcsoHQmy+HAkEU6Y6t//P02gIs/zwDT7VD71YF bx8Q== X-Gm-Message-State: AGRZ1gLfnfZDFgCfUBIkNA/ki0355ANGsG3qKKERVQHO6ys4fsd6LOwL fvIfJE6c2cCS5PcqQDOvcZb7M/t8N3qYD4ASwmbdkw== X-Received: by 2002:a19:2203:: with SMTP id i3mr5043106lfi.2.1542338682454; Thu, 15 Nov 2018 19:24:42 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a2e:95ca:0:0:0:0:0 with HTTP; Thu, 15 Nov 2018 19:24:42 -0800 (PST) In-Reply-To: <20181115133203.28567-1-linus.walleij@linaro.org> References: <20181115133203.28567-1-linus.walleij@linaro.org> From: Baolin Wang Date: Fri, 16 Nov 2018 11:24:42 +0800 Message-ID: Subject: Re: [PATCH 1/2] clocksource: Demote dbx500 PRCMU clocksource To: Linus Walleij Cc: LKML , Daniel Lezcano , Thomas Gleixner , Linux ARM Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15 November 2018 at 21:32, Linus Walleij wrote: > 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 > --- Glad to see new driver uses the suspend clocksource. Reviewed-by: Baolin Wang > drivers/clocksource/clksrc-dbx500-prcmu.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > 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 > -- > 2.17.2 > -- Baolin Wang Best Regards