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: 9377201 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 2BFB36022E for ; Fri, 14 Oct 2016 17:50:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 21C872A7BC for ; Fri, 14 Oct 2016 17:50:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1648E2A7C0; Fri, 14 Oct 2016 17:50:19 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4A8282A7BC for ; Fri, 14 Oct 2016 17:50:18 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bv6b1-0001QI-I4; Fri, 14 Oct 2016 17:48:39 +0000 Received: from mail-pa0-x233.google.com ([2607:f8b0:400e:c03::233]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bv6ap-0001Je-J2 for linux-arm-kernel@lists.infradead.org; Fri, 14 Oct 2016 17:48:28 +0000 Received: by mail-pa0-x233.google.com with SMTP id qn10so48627600pac.2 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=D07DYmwUY7/1slW9jm76FQ9DFG/N9B3rF6t/EGEd1n6ST6Fwgb0KFGZHO1cslWgy1g /lDll1YYr7qU1YaVx1PIaKQ666hRdcrmjxJXrB24ea7DTYDdnFJzSSI8Y43IfbLcP+xk 4aBqtsYuehjXRMPhOraNIWRQGnmfWTwKjJ34nUNxtZJFPqDBwh8aC8msiLVfvHVJO5hL F3LG4m5C1GDxdsmONIAUrmc1eCaqS6fRC4ON+qGLPhcjchCjXHQqtYFrDPFDOJWkcy9t SmVLYrXkaGJKhT846bYvOgxHQWZtkJIP7sZ5Ope5oMQN8O1BrlvKzwBLTb9n+azjK2te CTNA== X-Gm-Message-State: AA6/9RmeN2dlNDh6cmdMIGvDXlKCYg665UTQpBkZuBkjEFUcj6B7+TF/+K2g2fhVRyCg7G4K 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161014_104827_786459_05C41B80 X-CRM114-Status: GOOD ( 10.82 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: lorenzo.pieralisi@arm.com, Juri.Lelli@arm.com, linux-arm-msm@vger.kernel.org, sboyd@codeaurora.org, brendan.jackman@arm.com, sudeep.holla@arm.com, andy.gross@linaro.org, Lina Iyer MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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 {