From patchwork Mon Oct 19 14:51:40 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Haslam X-Patchwork-Id: 7437651 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C8F5B9F302 for ; Mon, 19 Oct 2015 14:54:11 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F125F206A9 for ; Mon, 19 Oct 2015 14:54:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0B3F220637 for ; Mon, 19 Oct 2015 14:54:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752024AbbJSOxv (ORCPT ); Mon, 19 Oct 2015 10:53:51 -0400 Received: from mail-wi0-f181.google.com ([209.85.212.181]:35443 "EHLO mail-wi0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753890AbbJSOwb (ORCPT ); Mon, 19 Oct 2015 10:52:31 -0400 Received: by wicll6 with SMTP id ll6so9554088wic.0 for ; Mon, 19 Oct 2015 07:52:30 -0700 (PDT) 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=O4vrzADIOJh+lXI2TjTgLtBbegnkThRx1xGd8XpLGmE=; b=kb4MbzOx9x33vDVHq1izKByW20NW5kXHdjSSDlrwnQfSXjlbSwL4pqCbWagugMOvDV DysFuFnfghsGK82eWmjBefBD/ppemf+Nt3qzS5veuOHIM6i3v1ZmUm4zxbgY0rgchK+U 8lNXQEXKlvAedP6I81rkleWmJHXQNCDhId3orTGnJMAwktWz+x8ghncyPuPp2mCXUSie h8plrztF5XHtvLM6jiPbAClz4NW+J0JZmkRLgxc9tbkDXWT6sAYUtvp4XXRd9gviE7VJ jLE12IEs+9dzweqDD1rOfEvJzwt9cNKCxgPwXxn5u1f+eyeVl/ZmoYGZi905v7QJcH1Q NS8Q== X-Gm-Message-State: ALoCoQmLRAozmaB4WtEc+5n26KBrv6tW7s1yZdusUArMUlqBPcZ0P74dj1F4SCmkw+y8P91DnVJZ X-Received: by 10.180.208.100 with SMTP id md4mr20769333wic.41.1445266350590; Mon, 19 Oct 2015 07:52:30 -0700 (PDT) Received: from localhost.localdomain (cag06-6-78-235-100-105.fbx.proxad.net. [78.235.100.105]) by smtp.gmail.com with ESMTPSA id ly4sm40619557wjb.4.2015.10.19.07.52.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 19 Oct 2015 07:52:30 -0700 (PDT) From: ahaslam@baylibre.com To: khilman@linaro.org, ulf.hansson@linaro.org, lina.iyer@linaro.org, geert@glider.be, k.kozlowski.k@gmail.com, rjw@rjwysocki.net, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: bcousson@baylibre.com, mturquette@baylibre.com, Axel Haslam Subject: [PATCH v9 5/6] PM / Domains: remove old power on/off latencies. Date: Mon, 19 Oct 2015 16:51:40 +0200 Message-Id: <1445266301-32448-6-git-send-email-ahaslam@baylibre.com> X-Mailer: git-send-email 2.4.5 In-Reply-To: <1445266301-32448-1-git-send-email-ahaslam@baylibre.com> References: <1445266301-32448-1-git-send-email-ahaslam@baylibre.com> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-5.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, TVD_SUBJ_WIPE_DEBT, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Axel Haslam Now that all known users have been converted to use state latencies, we can remove the latency field in the generic_pm_domain structure. Signed-off-by: Axel Haslam --- drivers/base/power/domain.c | 15 --------------- include/linux/pm_domain.h | 2 -- 2 files changed, 17 deletions(-) diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c index 8362b2c..3ab75cc 100644 --- a/drivers/base/power/domain.c +++ b/drivers/base/power/domain.c @@ -1239,21 +1239,6 @@ static int genpd_alloc_states_data(struct generic_pm_domain *genpd, st[i].power_off_latency_ns; } - /* - * Copy the latency values To keep compatibility with - * platforms that are not converted to use the multiple states. - * This will be removed once all platforms are converted to use - * multiple states. note that non converted platforms will use the - * default single off state. - */ - if (genpd->power_on_latency_ns != 0) - genpd->states[0].power_on_latency_ns = - genpd->power_on_latency_ns; - - if (genpd->power_off_latency_ns != 0) - genpd->states[0].power_off_latency_ns = - genpd->power_off_latency_ns; - genpd->state_count = st_count; /* to save memory, Name allocation will happen if debug is enabled */ diff --git a/include/linux/pm_domain.h b/include/linux/pm_domain.h index 3129f85..ff576e4 100644 --- a/include/linux/pm_domain.h +++ b/include/linux/pm_domain.h @@ -65,9 +65,7 @@ struct generic_pm_domain { unsigned int prepared_count; /* Suspend counter of prepared devices */ bool suspend_power_off; /* Power status before system suspend */ int (*power_off)(struct generic_pm_domain *domain); - s64 power_off_latency_ns; int (*power_on)(struct generic_pm_domain *domain); - s64 power_on_latency_ns; struct gpd_dev_ops dev_ops; s64 max_off_time_ns; /* Maximum allowed "suspended" time. */ bool max_off_time_changed;