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: 9363357 X-Patchwork-Delegate: agross@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id F29B8608A6 for ; Wed, 5 Oct 2016 20:32:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E65F428CDC for ; Wed, 5 Oct 2016 20:32:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DABB228CE0; Wed, 5 Oct 2016 20:32:11 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID 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 7A4E628CDE for ; Wed, 5 Oct 2016 20:32:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755033AbcJEUcK (ORCPT ); Wed, 5 Oct 2016 16:32:10 -0400 Received: from mail-pf0-f179.google.com ([209.85.192.179]:34228 "EHLO mail-pf0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755035AbcJEUcJ (ORCPT ); Wed, 5 Oct 2016 16:32:09 -0400 Received: by mail-pf0-f179.google.com with SMTP id e6so37075936pfk.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=idt0Ky/kNTJGCxcX7H85OpNWz5250Q9i/gTL5yIHhlxPXiPMVGyPZLU2YytN01Zq79 hUb/zBo8IvAqeUCUpUyh9ukgeXP76lYfCaGDGYI+KKXfmcmAAleBjjmKGb/J0djR5b0P pLdYfFVBpnmp2RYNpMuS7EvZ7hS3XBFfyJO5F0C8DNN1n8sxHUxMlvePM3btqycKo08K XzrDn7wLoIueEjt/6CgnXjPtTev4wRTzibrkBTZpNj8DfT5s7Y7Ip54Pn1btMYwqyGsj qk5CKwWjeLmTa8QR/H0q9kCtwXxcI9FZVPk0chqz8UuVrTqfqcd4Yg+aYoVbgaxmV3VJ i+QQ== X-Gm-Message-State: AA6/9Rkx6/hroDbXA/N+wGjOylsesNURy1xgsJnF4Am/R3KEmeN840nzmJjdP7j73MDLqSsS 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-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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(+) 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 {