From patchwork Wed Oct 5 20:31:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lina Iyer X-Patchwork-Id: 77284 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp2987550qgf; Wed, 5 Oct 2016 13:32:20 -0700 (PDT) X-Received: by 10.66.248.132 with SMTP id ym4mr16031764pac.182.1475699539981; Wed, 05 Oct 2016 13:32:19 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a8si49661889pfe.175.2016.10.05.13.32.19; Wed, 05 Oct 2016 13:32:19 -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=neutral (body hash did not verify) header.i=@linaro.org; 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=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755043AbcJEUcK (ORCPT + 14 others); Wed, 5 Oct 2016 16:32:10 -0400 Received: from mail-pf0-f178.google.com ([209.85.192.178]:34228 "EHLO mail-pf0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755033AbcJEUcJ (ORCPT ); Wed, 5 Oct 2016 16:32:09 -0400 Received: by mail-pf0-f178.google.com with SMTP id e6so37075935pfk.1 for ; Wed, 05 Oct 2016 13:32:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=JUIQDgVmJ6cjK/9hAEtluY2QAdhs2c0NL2obb5THI3U=; b=M9+S7VLXjn9LAq21p63H+A2LSlSQ8S6TK0PxBcnVEdX+NqS04vcvMvuimQjTQxUKVs zxZOULYHzdG+bkMkmRIzqqwj8CQJ+gMKc6l0kWGb8CyzDypS/qceXXaj4vx/yt3cq+Oc TByRP/XkrxtOfowOQ729lgPO/KOksGzKnIavE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=JUIQDgVmJ6cjK/9hAEtluY2QAdhs2c0NL2obb5THI3U=; b=HY25WF2rrEJy6FS+PZHxnEPCANc9XrHWQqF20Wd6mJZnO15EAqjAoqJi9QQADrbd2L JiKi0IMPxzkixNmWOsAsokfY3lS/rFlrbmJnv0w+Xxu3dxKYxGQaM/E2IUk7kKd92IM4 UFSlRYKZn1mg3dTdBmgAtnz1XOWQl2LJxPcC9+wAB8q5/pK196uScgc+EdS0J+dlwkuH W8mZ3rVUodbLy6HJtKU3ysewYZhwBjBo+0PyvGQUk21fnxOLPP2mqpekPENUfLjzB/fZ iZvlH9lGEDqEpnAe142LZpF+VM+sYxaZGgYsxHjW8B2ux6UT5QinDD2o5vECNhswRxZe 6tkg== X-Gm-Message-State: AA6/9RkW1BDuXSXeDpQ7Q/5xrNwYiskSgxd6RANovhkIMZqxZrcSYc4hSzKUS2V8QY9bkEn6 X-Received: by 10.98.90.133 with SMTP id o127mr10302093pfb.61.1475699528941; Wed, 05 Oct 2016 13:32:08 -0700 (PDT) Received: from ubuntu.localdomain (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id s80sm42999467pfd.10.2016.10.05.13.32.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 05 Oct 2016 13:32:08 -0700 (PDT) From: Lina Iyer To: ulf.hansson@linaro.org, khilman@kernel.org, rjw@rjwysocki.net, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: andy.gross@linaro.org, sboyd@codeaurora.org, linux-arm-msm@vger.kernel.org, brendan.jackman@arm.com, lorenzo.pieralisi@arm.com, sudeep.holla@arm.com, Juri.Lelli@arm.com, Lina Iyer Subject: [PATCH 2/8] PM / Domain: Add residency property to genpd states Date: Wed, 5 Oct 2016 14:31:53 -0600 Message-Id: <1475699519-109623-3-git-send-email-lina.iyer@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1475699519-109623-1-git-send-email-lina.iyer@linaro.org> References: <1475699519-109623-1-git-send-email-lina.iyer@linaro.org> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Residency of a domain's idle state indicates that the minimum idle time for the domain's idle state to be beneficial for power. Add the parameter to the state node. Future patches, will use the residency value in the genpd governor to determine if it is worth while to enter an idle state. Signed-off-by: Lina Iyer --- include/linux/pm_domain.h | 1 + 1 file changed, 1 insertion(+) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-pm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Acked-by: Ulf Hansson diff --git a/include/linux/pm_domain.h b/include/linux/pm_domain.h index bd1ffb9..c113713 100644 --- a/include/linux/pm_domain.h +++ b/include/linux/pm_domain.h @@ -38,6 +38,7 @@ struct gpd_dev_ops { struct genpd_power_state { s64 power_off_latency_ns; s64 power_on_latency_ns; + s64 residency_ns; }; struct generic_pm_domain {