From patchwork Tue Feb 9 13:15:51 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Haslam X-Patchwork-Id: 8261841 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 0D8A5BEEE5 for ; Tue, 9 Feb 2016 13:16:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DB06320272 for ; Tue, 9 Feb 2016 13:16:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0889020268 for ; Tue, 9 Feb 2016 13:16:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755611AbcBINQS (ORCPT ); Tue, 9 Feb 2016 08:16:18 -0500 Received: from mail-wm0-f53.google.com ([74.125.82.53]:33076 "EHLO mail-wm0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756155AbcBINQQ (ORCPT ); Tue, 9 Feb 2016 08:16:16 -0500 Received: by mail-wm0-f53.google.com with SMTP id g62so174065162wme.0 for ; Tue, 09 Feb 2016 05:16:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=XIxiZyTVNlAA8JI/p7I2BqIDzXT4UqGtOPCLF23MKFw=; b=yttsisOIFF52loWZt2YucW065YmCUH3trWyBzK3HFnOeFIT+F/ynNgOMeta636qZe1 VDLFhOR/pt6rpTWp+bdOkqq1HxJd6auRSCNfy+GR/e5hj71zr+htAgBlTiSMyiDP1c8U 05dcR/AU6LNHozD9o1LqEr4ANdOhGtqkIt7ElRik/pQzoG/wIfDTR2NvHihYx3Jb47Fw MAvsZNaDo+POk05+aGF8bUT0j3JND4LqvRgabv1A81XByifMVhRrUrTN/m6C3QfxT2kl j3u2N3rg42HeYlae463BUqzTUOTPofluIl6jvRuD1v6q7cuSruxR5988rgkQwHkBRxzx /fYg== 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=XIxiZyTVNlAA8JI/p7I2BqIDzXT4UqGtOPCLF23MKFw=; b=ftljaVORc/DbOW/93zd3YO8BuoU068kwBsmADNZZ4hwB8yPs/brNr4AXsMvsXYR0Ri p0IqDX5y9lojAeosPWt8viA9BcRjXk2rD89EXqU1NzEefU9dZpyKZKD+BBmpSSCHNCKY Xt9+qkRqMuz1ylTpy7x595KUcNmSE+ZPYKx7gR9kNWmwJBCcJXV71rVStEEY6iy1imIP K4N62q8bmxO5M1wPSdwWCXWi7hymMCnIxIyCgFkgU5OW2uHgTGqDtWSGyZIUv+8IdNMk WKEYAqAYcn2W3wfLGtufG3/qJhpChWKQie2fVSrbV48JFcwgpYBVUZHST2FhYvifGy+m jaiQ== X-Gm-Message-State: AG10YORgSQvYn31dqvazA76DYYAR4Wj2yYYLrI0mOs73r/WoPEtYcUfjHLiqp6tYcW2qeHix X-Received: by 10.28.24.85 with SMTP id 82mr5068236wmy.58.1455023775155; Tue, 09 Feb 2016 05:16:15 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id e198sm17692671wmd.0.2016.02.09.05.16.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 09 Feb 2016 05:16:14 -0800 (PST) From: ahaslam@baylibre.com To: ulf.hansson@linaro.org, lina.iyer@linaro.org Cc: khilman@baylibre.com, linux-pm@vger.kernel.org, geert@linux-m68k.org, mtitinger@baylibre.com, rjw@rjwysocki.net, bcousson@baylibre.com, Axel Haslam Subject: [RFC v11 3/3] PM / Domains: remove old power on/off latencies. Date: Tue, 9 Feb 2016 14:15:51 +0100 Message-Id: <1455023751-32521-4-git-send-email-ahaslam@baylibre.com> X-Mailer: git-send-email 2.6.3 In-Reply-To: <1455023751-32521-1-git-send-email-ahaslam@baylibre.com> References: <1455023751-32521-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=-6.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,TVD_SUBJ_WIPE_DEBT,T_DKIM_INVALID, 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 Acked-by: Ulf Hansson --- drivers/base/power/domain.c | 6 ------ include/linux/pm_domain.h | 2 -- 2 files changed, 8 deletions(-) diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c index 7099eb3..c4b3e36 100644 --- a/drivers/base/power/domain.c +++ b/drivers/base/power/domain.c @@ -1230,12 +1230,6 @@ static int genpd_alloc_default_state(struct generic_pm_domain *genpd) goto err; } - genpd->states[0].power_on_latency_ns = - genpd->power_on_latency_ns; - - genpd->states[0].power_off_latency_ns = - genpd->power_off_latency_ns; - genpd->state_count = 1; genpd->state_idx = 0; diff --git a/include/linux/pm_domain.h b/include/linux/pm_domain.h index a5c3b68..2cc75d8 100644 --- a/include/linux/pm_domain.h +++ b/include/linux/pm_domain.h @@ -59,9 +59,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;