From patchwork Mon Feb 4 16:25:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Guittot X-Patchwork-Id: 10796073 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AFFAE13B4 for ; Mon, 4 Feb 2019 16:26:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9F2E82BBEE for ; Mon, 4 Feb 2019 16:26:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 932E02BBFD; Mon, 4 Feb 2019 16:26:15 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4E9252BC02 for ; Mon, 4 Feb 2019 16:26:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729662AbfBDQZ7 (ORCPT ); Mon, 4 Feb 2019 11:25:59 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:37808 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729591AbfBDQZ7 (ORCPT ); Mon, 4 Feb 2019 11:25:59 -0500 Received: by mail-wr1-f65.google.com with SMTP id s12so494850wrt.4 for ; Mon, 04 Feb 2019 08:25:58 -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=gj4CO8cKmeYrRRbK9pmA1l2CtkIGPY5k/yuxkvfaR0I=; b=iSpGVm6bk6aqVVi6UgCSx6Ltk72BPZUwH9m/dakwPfH66odYZZnNC6MuA7N3jYacPj hgi+vjkJTXK0Lyhy+xFs9YpnJg8zyIp/WFMTP8YfHMiZwDwEJcMSXD/ktxxYRtqSXYB4 3+floKLMmdYOzoFyGWxLCzafuY4mOBR7mIxXU= 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=gj4CO8cKmeYrRRbK9pmA1l2CtkIGPY5k/yuxkvfaR0I=; b=NyJAN0N7y8fIGuC35nejS/oGBSghTF/O7mdX1zfhuaZDR4aqjUv+lot302HqkrWZHW 0diwgpGiKF8nMDOHj5ahPr2D9lZb5EahvdLb9d12wraLIUk5EZITlrdvEGPrmacZ56EG 1jxRuJF9uPMweiG2jfbp97Wm/0dz/zlnnSR3BOCVADXs9ghDWWEF/qcmh0ZuRYcN7UHY PSykUBLXmM3mISA7CWlIFyvHIUJO0pniK4WzxMADYGc9LdBu9o3lOZ7jimFDjDrxdMLY 8NoE31n8WveLml7AsM1NNzb7Eh9zLEahG49Ho3EDuQr0tMFfib9qjv6IXmyB1TvehxBb /o2A== X-Gm-Message-State: AHQUAubeTABKwCKITxpUbwOnP37EHMU3oWRSBc37q1XfnhneNVlWX1hk MajCcR62FWrq2GA/WbTfqV0U/GheDQs= X-Google-Smtp-Source: AHgI3IYguOK+dM/9om6QfOgjjrMG44+JJ3V9kjMBviVQPvGe1GyoA3P+vG/ut4gB+CnLAU/37KPzsg== X-Received: by 2002:a5d:4e82:: with SMTP id e2mr114174wru.291.1549297557099; Mon, 04 Feb 2019 08:25:57 -0800 (PST) Received: from localhost.localdomain ([2a01:e0a:f:6020:70b6:b9c6:89e2:36a]) by smtp.gmail.com with ESMTPSA id a4sm1251992wrt.37.2019.02.04.08.25.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 04 Feb 2019 08:25:56 -0800 (PST) From: Vincent Guittot To: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, rjw@rjwysocki.net, ulf.hansson@linaro.org, biju.das@bp.renesas.com Cc: linux-arm-kernel@lists.infradead.org, geert@linux-m68k.org, thara.gopinath@linaro.org, linux-renesas-soc@vger.kernel.org, Vincent Guittot Subject: [PATCH 0/2] PM-runtime: fix and clean up of time accounting Date: Mon, 4 Feb 2019 17:25:51 +0100 Message-Id: <1549297553-17647-1-git-send-email-vincent.guittot@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fix time accounting which has the same lock contraint as for using hrtimer and update accounting_timestamp only when useful. Vincent Guittot (2): PM-runtime: move runtime accounting on ktime_get_mono_fast_ns() PM-runtime: update time accounting only when enabled drivers/base/power/runtime.c | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-)