From patchwork Fri Oct 14 17:47:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lina Iyer X-Patchwork-Id: 9377175 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 5CD89608A0 for ; Fri, 14 Oct 2016 17:48:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 523652A70B for ; Fri, 14 Oct 2016 17:48:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 470D02A733; Fri, 14 Oct 2016 17:48:10 +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 E548E2A725 for ; Fri, 14 Oct 2016 17:48:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756005AbcJNRsJ (ORCPT ); Fri, 14 Oct 2016 13:48:09 -0400 Received: from mail-pa0-f49.google.com ([209.85.220.49]:34270 "EHLO mail-pa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754919AbcJNRsH (ORCPT ); Fri, 14 Oct 2016 13:48:07 -0400 Received: by mail-pa0-f49.google.com with SMTP id rz1so48906918pab.1 for ; Fri, 14 Oct 2016 10:48:07 -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=g7aG+kfzK64/9dIC16k11E19srVPU2KoVsFW67hIKskwzIHXAc6G8A4yL31ZL8VGJ/ 56ueCZSW/nO2HCbBBfZDQTaXuzV3W53hTtUwNNkwjxC6fE/CABM3czm/UZV4mQIiyRoI oqVFl8uD9gp5uJi6nT6VKWZ7cQ2fA5uGSiI24= 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=CWMSF8MgwRgm6QUxEylQZmiAUZCt3nKT9pWPR1UK/AoOwNWSy8OuT3XhJknGoYw8I2 jPnipDSWOq0eyJx3+deMG9z5r3BGOj8w9NEKXoutI14MhNXWETmTBMj17GdFmrW1Gw/f bwwV+N0G08JGlQJq6BbC0yJDkTLdxHDsj4Ro0CNDZvNWbfO+MhoBAeQZqO8VtIu9vrhZ nKTMs+IrPGHK+ZAqyfE3Jep3L/fitoMAoY12YQHwPFTyI/jKwq16iph58msC1ISzIu+N 2JuD+jnW2b8hKqEuPgAtuEeZQQRSypivREBOjtt5og8BTewTFIU4wD8CxiyBJqMfVKWP SGWQ== X-Gm-Message-State: AA6/9Rll+pQlZqCGVOP9nOPuIRIZqufkI8pBg8dBITF+SGSjudo/UIfR4y5+0OLADOrwut5j X-Received: by 10.66.51.129 with SMTP id k1mr16661574pao.5.1476467286689; Fri, 14 Oct 2016 10:48:06 -0700 (PDT) Received: from ubuntu.localdomain (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id q12sm6725466pfd.7.2016.10.14.10.48.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 14 Oct 2016 10:48:05 -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 v3 2/8] PM / Domain: Add residency property to genpd states Date: Fri, 14 Oct 2016 10:47:50 -0700 Message-Id: <1476467276-75094-3-git-send-email-lina.iyer@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1476467276-75094-1-git-send-email-lina.iyer@linaro.org> References: <1476467276-75094-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 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 {