From patchwork Fri Jul 14 17:10:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thara Gopinath X-Patchwork-Id: 107813 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp1164329qge; Fri, 14 Jul 2017 10:10:21 -0700 (PDT) X-Received: by 10.98.96.66 with SMTP id u63mr6434465pfb.68.1500052221588; Fri, 14 Jul 2017 10:10:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1500052221; cv=none; d=google.com; s=arc-20160816; b=bgJs3dLKabUOT9znB+Kr0rAifZRXPOw6kLg91byJ+LiIW1Go/fFy53W3BEMZLrDlRX Row1c3n+1gDw0peYdB6IbdxtOVALc07qSpYcLKPrF1K0Bezwo8fqBqvTPqdxqldxeir9 3pNPPmb62Tl7w1FIs7dLqwBKv29t3uZvhg6CXmSfZiI9X2s5NfeBN3BkUsBQIDCZBuE8 lY8cq8Snisk5mV8NNMOx6GWsZx479F5MCN2+EgVHLO9ZCnYp9Lp45DtipwcijWdNMNbl u0B5j41QlHy/Jwjq43Hb/EGt0BWWWrCiI7cUcY2wqTRDqzeGxhQ6cBOOO/o+HYbcFGHu aa/g== 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:to:from :dkim-signature:arc-authentication-results; bh=2v71dSvnaX27z3F/HhGk2esm8nFmQVq3moptMkQLJnw=; b=nkx+euqRQuEwOHmP3ggNkDVxqW/sJhoRFt10MRXaL/eJaN1N813Z01wPl2AIPGvnqi VHxwVQUevlxvOizlIyxtUnSpNZ5wTMvLbsLIfhtw4I23iRSVHo5y0mCv/xPplWpXC7rs OrQ15/yI9zPm5Rh/SDjEVm3Vt2b7pZrqSGfVTU99O2iU9qDTcfkRx+tnOYJZ0iHEDoIj Ur56m1p3+PQ9Qly04A62O17C8f0/IO4oWlEZhiQFoUzRDWrqW9ShXsyw88L6+0+P5pb8 CvuOFuOyym4M2WgOOUexqo33L5D5ZeZNV9NN5F+Hm0JOM23jL9CuSaLu/uKEvUBlpyOy QPFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=kdMh/V4p; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-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 15si419763plf.80.2017.07.14.10.10.20; Fri, 14 Jul 2017 10:10:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-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.b=kdMh/V4p; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-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 S1753486AbdGNRKU (ORCPT + 14 others); Fri, 14 Jul 2017 13:10:20 -0400 Received: from mail-qk0-f182.google.com ([209.85.220.182]:33655 "EHLO mail-qk0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753446AbdGNRKT (ORCPT ); Fri, 14 Jul 2017 13:10:19 -0400 Received: by mail-qk0-f182.google.com with SMTP id a66so66565622qkb.0 for ; Fri, 14 Jul 2017 10:10:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id; bh=2v71dSvnaX27z3F/HhGk2esm8nFmQVq3moptMkQLJnw=; b=kdMh/V4pIIE7JZjjbO+TAHXdgvr+nTrwUGl5591osyFljX9BhEgDD+hbIEvwwIAaHn Ayi5j31TPoQU4FgmI17sMYyeQtcT/pdf3bv2Hog+YMasGWIhnhYfI6pUqiHgdYh4OHNL injKQmrBwDxHSeGHem10r4bvCdEO3k5nycJuc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=2v71dSvnaX27z3F/HhGk2esm8nFmQVq3moptMkQLJnw=; b=XSEikD638f/Ur9HKyo/43au7h0ZFHyn7o7fEC7EJRz6s5YVXBEqm0fYl5d+uoCW3zc xTM/8oDno+uFVTh48/7U8HU42fsdJYWsHjthU18+B91OmeAsBS6HLX1v0r4WukQnXZNz HPK3PdshZJqZcCPnfgRI6cSfHk5JVtIbAAWV3TF6MOxGGh7C8hSLfsf2Sb19ohvzIWJp cvui8YxpaekmRHQEk8KI8dNAgR/FzNvYXfejYxJArnpcBWN0vyuJcnWk7/i/zfXGgx2s 03r4jReSwbxDRl1z+ANCYNjMqg0awGO7JVIapxtUEj+ZK/zyAaRIgSqnGFrRB+Mm8LEV AuHQ== X-Gm-Message-State: AIVw112yr8WNx/M3MavQPvKeKwUzpvJB6EZsOOiB6a6OEELo1KIcIIg6 kR+ahGqMjXMcSqgt X-Received: by 10.55.105.130 with SMTP id e124mr12087258qkc.117.1500052218458; Fri, 14 Jul 2017 10:10:18 -0700 (PDT) Received: from Thara-Work-Ubuntu.fios-router.home (pool-71-255-245-167.washdc.fios.verizon.net. [71.255.245.167]) by smtp.googlemail.com with ESMTPSA id c18sm7546799qtd.62.2017.07.14.10.10.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 14 Jul 2017 10:10:17 -0700 (PDT) From: Thara Gopinath To: ulf.hansson@linaro.org, khilman@kernel.org, rjw@rjwysocki.net, gregkh@linuxfoundation.org, linux-pm@vger.kernel.org Subject: [PATCH V4 0/2] PM / Domains: Expand generic power domain debugfs. Date: Fri, 14 Jul 2017 13:10:14 -0400 Message-Id: <1500052216-22252-1-git-send-email-thara.gopinath@linaro.org> X-Mailer: git-send-email 2.1.4 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org This patch set attempts to improve the existing generic power domain debugfs capabilities. The first patch adds various accounting and other bits needed to expose out the generic power domain statistics. The second patch introduces new debugfs entries and attributes. V3->V4: - Renamed the newly defined static functions in domain.c to adhere to existing naming convention. V2->V3: - Changed the order of calling genpd_update_accounting and genpd->status getting updated in power on and power off apis. - Minor fixes from review comments on the list. V1->V2: - Removed calling of update accounting from suspend resume context where time keeping can be disabled. - Added back the pm_genpd_summary which was removed by the first version of this patchset. - Renamed a few debugfs parameters. Thara Gopinath (2): PM / Domains: Add time accounting to various genpd states. PM / Domains: Extend generic power domain debugfs. drivers/base/power/domain.c | 237 ++++++++++++++++++++++++++++++++++++++++++-- include/linux/pm_domain.h | 3 + 2 files changed, 230 insertions(+), 10 deletions(-) -- 2.1.4