From patchwork Fri Oct 7 22:36:55 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lina Iyer X-Patchwork-Id: 77361 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp438574qge; Fri, 7 Oct 2016 15:37:16 -0700 (PDT) X-Received: by 10.66.21.68 with SMTP id t4mr6705129pae.139.1475879835994; Fri, 07 Oct 2016 15:37:15 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j23si10235837pfj.74.2016.10.07.15.37.15; Fri, 07 Oct 2016 15:37:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-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-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1754091AbcJGWhO (ORCPT + 9 others); Fri, 7 Oct 2016 18:37:14 -0400 Received: from mail-pa0-f43.google.com ([209.85.220.43]:33390 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753684AbcJGWhO (ORCPT ); Fri, 7 Oct 2016 18:37:14 -0400 Received: by mail-pa0-f43.google.com with SMTP id cd13so28111671pac.0 for ; Fri, 07 Oct 2016 15:37:13 -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=i/4I1kVLk2aAr7UJHAGgVhubzr9vOw2aHbsnwb+TKps=; b=fanyhLk+wVliZ7rkHIUC7xObKXJdmiPMc4XweJ/tG8EBP7Kalz4m/N+o17201Iix7f esth3W+KIM6nUP9ymI9Pb0j6mOd+Nr6wCvCjy6mCxCyMbbrWthMIXYiKE7i+E2poJUSz RUDCdHt8UtHfOwhsGx6J7CVwgySnwdthkM6dY= 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=i/4I1kVLk2aAr7UJHAGgVhubzr9vOw2aHbsnwb+TKps=; b=Fz4n3NhTTzGqOEYtEx5T5nCRahBDAd5IFwJ4eE4EYDWwKCfxj7KHGkUIIiXWhryK0O vYGETmp8FIx1V3WdWBGCjrRlb6pD0y+HmJn4nIiqOij5+tVfzOJvd8Hz3IakZ3rN/Co6 8PlSpATXBWe10EF9b5G3Xk6YrkX33B8VZwVA4VNSUD1JRdUKekY7yGJF7KWxifRNpBcC /9dwjB4DZl6Pmq+/J+PIkORSmjEFJY4zhUY+Ct7xNYR28IfXq4+OUlrpodC0vLGqWuZ0 90enLt0GBSz6JXf50GW2/xLaMQUMSHDtXYS8/SVLHQdY8d4hGA9LKh/fp0O1BSLCtTdE RhMg== X-Gm-Message-State: AA6/9RlhRFWRhKkmBfbnSsKv5ecesXVr2L/vkw1vzt3c7dZffM3uPYYzawcigd8JBdNugTD4 X-Received: by 10.66.5.7 with SMTP id o7mr18295039pao.19.1475879833253; Fri, 07 Oct 2016 15:37:13 -0700 (PDT) Received: from ubuntu.localdomain (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id 4sm16409203pfw.90.2016.10.07.15.37.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 07 Oct 2016 15:37:12 -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 v2 2/8] PM / Domain: Add residency property to genpd states Date: Fri, 7 Oct 2016 15:36:55 -0700 Message-Id: <1475879821-8035-3-git-send-email-lina.iyer@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1475879821-8035-1-git-send-email-lina.iyer@linaro.org> References: <1475879821-8035-1-git-send-email-lina.iyer@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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 Acked-by: Ulf Hansson --- include/linux/pm_domain.h | 1 + 1 file changed, 1 insertion(+) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/include/linux/pm_domain.h b/include/linux/pm_domain.h index de1d8f3..f4492eb 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 {