From patchwork Mon Oct 24 22:21:01 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lina Iyer X-Patchwork-Id: 79093 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp2813225qge; Mon, 24 Oct 2016 15:21:26 -0700 (PDT) X-Received: by 10.99.232.17 with SMTP id s17mr27546352pgh.127.1477347686043; Mon, 24 Oct 2016 15:21:26 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u66si10369562pfb.16.2016.10.24.15.21.25; Mon, 24 Oct 2016 15:21:26 -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 S965254AbcJXWVW (ORCPT + 14 others); Mon, 24 Oct 2016 18:21:22 -0400 Received: from mail-pf0-f170.google.com ([209.85.192.170]:33253 "EHLO mail-pf0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965674AbcJXWVS (ORCPT ); Mon, 24 Oct 2016 18:21:18 -0400 Received: by mail-pf0-f170.google.com with SMTP id 128so106323474pfz.0 for ; Mon, 24 Oct 2016 15:21:18 -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=Ar7yQJW5LyG4cH1Mi/V36rxZWMDpZz4oihWiUhnVvqN/iwbYFcxVcyl6NoRu+5xNRr ZaOK8dfWzERvhY1e0o7PbQgKiZBGYjv17b4sbHjw6LFlNbNf1NOmGQFQQaYlPv4pl7q1 PQAphkR0xhA6ARMNKMUCGhSP1J9cvWdnD7XbU= 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=YHX3pUyc5cXTlqLKKCU19uqkLQ5obINhrrHaoeD2d+YLRduMsLGvNSXPIj/JT3skSm x9THowzreAORbjrhd3dNeDBMG3hp1Q6zr7hzcFl8p8PeKUk2SEkI1gpCtJ6QaEgtv7ID PSEj+6pU2cq0shLanRDFdayur9OXy2VLKjuIuXMgyjEl+xpIvSVP2Y4bE4oE7KHNHXqJ UC70RNklUdMd00Il1keK5zUSEHhfncA1H2ev57HYFRUdOec9jJ/dDWJHKbaeonKAJbMu aX3PhO99JrHGALfyrZUjJ1rE3fq2BLY8Ws+QRarA2FY9n7dT3DbQ3//TxQpoLn48SvHm N01Q== X-Gm-Message-State: ABUngvdtU3QrCZKx05G+CtNO9d6rfvEu7PgfpfkTsBgAD+upZV7vKf1t+1j7aDOGAF0LysTd X-Received: by 10.99.98.2 with SMTP id w2mr8885244pgb.59.1477347678094; Mon, 24 Oct 2016 15:21:18 -0700 (PDT) Received: from ubuntu.localdomain (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id x190sm27674408pfd.20.2016.10.24.15.21.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 24 Oct 2016 15:21:17 -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 v4 2/9] PM / Domain: Add residency property to genpd states Date: Mon, 24 Oct 2016 15:21:01 -0700 Message-Id: <1477347668-41901-3-git-send-email-lina.iyer@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1477347668-41901-1-git-send-email-lina.iyer@linaro.org> References: <1477347668-41901-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 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-pm" 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 {