From patchwork Thu Oct 15 12:16:35 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Haslam X-Patchwork-Id: 7405501 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 08A9FBEEA4 for ; Thu, 15 Oct 2015 12:17:05 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2B06020848 for ; Thu, 15 Oct 2015 12:17:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3282C20883 for ; Thu, 15 Oct 2015 12:17:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752998AbbJOMQ5 (ORCPT ); Thu, 15 Oct 2015 08:16:57 -0400 Received: from mail-wi0-f181.google.com ([209.85.212.181]:38338 "EHLO mail-wi0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752612AbbJOMQ4 (ORCPT ); Thu, 15 Oct 2015 08:16:56 -0400 Received: by wicll6 with SMTP id ll6so16346286wic.1 for ; Thu, 15 Oct 2015 05:16:55 -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=Gh5MsqHD/9ZKGLTkWwGV24B9Oll+K46xJI+367RRz7Y=; b=NWg1Nk4AKZedLVZbIdPOTYODx8eWb+MYB/N+shKL1edKn1/bsw7wzvApFgoP7bGs5w KC/b6kEMtKKFGZubbGkanHNS2oBRwwEblBZqoW7aBaSbo6ildh1ape4uxhQMTivRqRmJ jh1YLSqzV1vK6LXDW7JZ/iTXwccZx4OGjk0Lw4UMAUnul1XPz6B9yIQk3j1lweBnPfa1 vPdP7GO2/jX4BCgxdiAFOCSV/5D8ish2cMWpXorQuSBWMm99IurSwbslp9VRIcJJALDO LkiewadCc+6f2+O5uR6ytz1r2w4CMZmlKKlJ8ZcVjbpLuuwQv7/TKW9IyXQHgEE5goXS rOYQ== X-Gm-Message-State: ALoCoQmnR6iBbUcHBwB/ulBQCoLguhxRjZ51VNdMOhFXvSDnDL4wuTeIPVDs7hQyHRwg/qVGUtRB X-Received: by 10.180.102.169 with SMTP id fp9mr11157191wib.29.1444911415113; Thu, 15 Oct 2015 05:16:55 -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 p2sm16156948wjb.21.2015.10.15.05.16.53 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 15 Oct 2015 05:16:54 -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 Cc: bcousson@baylibre.com, mturquette@baylibre.com, Axel Haslam Subject: [PATCH v8 5/6] PM / Domains: remove old power on/off latencies. Date: Thu, 15 Oct 2015 14:16:35 +0200 Message-Id: <1444911396-3473-6-git-send-email-ahaslam@baylibre.com> X-Mailer: git-send-email 2.4.5 In-Reply-To: <1444911396-3473-1-git-send-email-ahaslam@baylibre.com> References: <1444911396-3473-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, TVD_SUBJ_WIPE_DEBT, T_RP_MATCHES_RCVD, 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 c475fdd..df2f244 100644 --- a/drivers/base/power/domain.c +++ b/drivers/base/power/domain.c @@ -1310,21 +1310,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 52d91d0..c4b9322 100644 --- a/include/linux/pm_domain.h +++ b/include/linux/pm_domain.h @@ -67,9 +67,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;