From patchwork Tue Nov 17 22:37:29 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lina Iyer X-Patchwork-Id: 7643321 Return-Path: X-Original-To: patchwork-linux-arm@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 CF5CE9F2EC for ; Tue, 17 Nov 2015 22:48:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0C84220459 for ; Tue, 17 Nov 2015 22:48:29 +0000 (UTC) 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.kernel.org (Postfix) with ESMTPS id 27B8620457 for ; Tue, 17 Nov 2015 22:48:28 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zyp1D-0006al-Og; Tue, 17 Nov 2015 22:46:31 +0000 Received: from mail-pa0-x22e.google.com ([2607:f8b0:400e:c03::22e]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zyoth-0005XP-Al for linux-arm-kernel@lists.infradead.org; Tue, 17 Nov 2015 22:38:47 +0000 Received: by pabfh17 with SMTP id fh17so22924620pab.0 for ; Tue, 17 Nov 2015 14:38:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro_org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=VEilj8T07WGibnPJbl9d0l/HPj6C1EB5e8e5KT6GVNo=; b=E4kVCtxYI2zzZfyi0X/l95DlqKFf13CMKLWNcQ1/0Uyz+3DAcmWz07lGhyv9vP0Cac Jcsr7mdFSHXvuKxv4QLLpsLmudwSCiCoS6ANIZucZkQxdMTTzF+XNs/exQhks12Npp20 AMJQIVYpE2jJq2s0PrBJMI1b5bOt2bc/EFlamqU46FjJWLfXnhM585Oo6cj301+3QG0P We7PQYwFndBS6LWyIh3odJd5yf428gtdPJ2w2ADVy44aMBbRElGC6N53iZT9eRdHFrED 13/l+D5rKuswvNhbMh5MkiTJrC1nwNed3rD231x2tOV7Q2lqzlh8ryNah6SG7CHLVrwS SEcg== 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=VEilj8T07WGibnPJbl9d0l/HPj6C1EB5e8e5KT6GVNo=; b=PU0wMHGOe2KuBdWoyRIryNOPdHwA4Bp+xasSrxhQ+5fZU9L6TFBdqofCyF0iJ4AYlC Cb9pm8jC6l71tzHjVR5LaTDsFBuVKvsVZmrF6kUpeojctzh42uv9bUFf/LrcfNy1bAys dLkLtocuKTRFbPNgpjYhtLrhEjlw4RLCvnAeV0nNm8i3+ZMDeqfuPZhrwpSEI11g/N2t CO4+7/HXJB8VcVhHA34ZuH4WnJ+AT4zApaIL6MHomUsu07ByoXjJANFXbBmB9aIKhQK2 dcOhceI/5xCLx0e3fKvFhix80/N1hMp1THZc5kqixMSaogrHBtgZb/LTxDvwVbu3fDdr RGJw== X-Gm-Message-State: ALoCoQmhsw6GfAuY02Wx7FClhb03kVEUm3YwgXHxfOVAd95En+CM3p8XMUrtuGlbX+vIexhLVL2R X-Received: by 10.67.4.69 with SMTP id cc5mr66476295pad.142.1447799906339; Tue, 17 Nov 2015 14:38:26 -0800 (PST) Received: from ubuntu.localdomain ([8.42.77.226]) by smtp.gmail.com with ESMTPSA id hy1sm14875199pbb.63.2015.11.17.14.38.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 17 Nov 2015 14:38:25 -0800 (PST) From: Lina Iyer To: ulf.hansson@linaro.org, khilman@linaro.org, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH RFC 05/27] PM / Domains: remove old power on/off latencies. Date: Tue, 17 Nov 2015 15:37:29 -0700 Message-Id: <1447799871-56374-6-git-send-email-lina.iyer@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1447799871-56374-1-git-send-email-lina.iyer@linaro.org> References: <1447799871-56374-1-git-send-email-lina.iyer@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151117_143845_646218_8A198E0F X-CRM114-Status: GOOD ( 12.37 ) X-Spam-Score: -1.6 (-) 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: Axel Haslam , k.kozlowski@samsung.com, lorenzo.pieralisi@arm.com, ahaslam@baylibre.com, linux-arm-msm@vger.kernel.org, sboyd@codeaurora.org, msivasub@codeaurora.org, geert@linux-m68k.org, agross@codeaurora.org, mtitinger@baylibre.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, 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 --- 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 3fb4c93..c300293 100644 --- a/drivers/base/power/domain.c +++ b/drivers/base/power/domain.c @@ -1248,21 +1248,6 @@ static int genpd_alloc_states_data(struct generic_pm_domain *genpd, genpd->states[i].param = st[i].param; } - /* - * 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 15df24c..108a4b3 100644 --- a/include/linux/pm_domain.h +++ b/include/linux/pm_domain.h @@ -61,9 +61,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;