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: 10796059 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 3FCA813A4 for ; Mon, 4 Feb 2019 16:26:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 293CA2BBEE for ; Mon, 4 Feb 2019 16:26:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1B0642BBF9; Mon, 4 Feb 2019 16:26:00 +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=ham 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 A64FE2BBEE for ; Mon, 4 Feb 2019 16:25:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729597AbfBDQZ7 (ORCPT ); Mon, 4 Feb 2019 11:25:59 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:36235 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727333AbfBDQZ7 (ORCPT ); Mon, 4 Feb 2019 11:25:59 -0500 Received: by mail-wr1-f66.google.com with SMTP id z3so503350wrv.3 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=tRWsxrCK0BWxSPJsg53tbN7h1chbva6DwT8T6PJPbi8xQNbMLFjrivg9wipBwm9tnh GRh1n7Si1CRWZVbF7rYUoWsgUB8oG9J5hi1hOtQqjw+w2J8phcgN3Qlxxp/pdEJetJTW WIqOwr0I4RF8n1mPZR3jwrecT8Woit8+eoBokVOZQOuNUAExAuVvcV0p21xcPs0M9nXZ JQva0BzIMHwSONgab8cnPAOcx6/eWABtVCzFDlWEH+WvpdjGjfbokV5OLmmFQq+jhuGQ AAXdHonu+C2+y3xneF6UjfjPp7I+wzozMQo03qSWq1vtwJA667+GsFqyM+zjnW2UlzMa Du1Q== X-Gm-Message-State: AHQUAuai8RMhyqfnDJdn+haQpUrV7vQEGV6YCkBWFZcXWZ+Qp+J8zzOD C7z0CpzIZAXiSoZAW0awLE7miA== 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-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@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(-)