From patchwork Tue Oct 6 12:27:42 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 54529 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by patches.linaro.org (Postfix) with ESMTPS id 2C07922FC5 for ; Tue, 6 Oct 2015 12:27:49 +0000 (UTC) Received: by wicmn1 with SMTP id mn1sf40843778wic.1 for ; Tue, 06 Oct 2015 05:27:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=3dDtpyxAnS1MbfQokMildZP39s2NRLhlBO5TmLGBt0k=; b=KTs7fOg9mI6rLm7A1PntSAq9BSiuobLFeJXaJpyc37wqTJEQsFFynjdWd4OxWGSgDw 74U1dVIHNI1emQcd8Kufh7ZSZ25nelQxvo62L1sc8Liq5LqRGbETtANCZc615awmwOSZ jl4tsy7rxkbcxve2C6pTG0Gs1ya64C6OYNZ3IbxVTGzFCEesUdV4ZCkzxZTSoTxPFSdf aeGYe/ORzTHJqAEJHrB5AsdTgt0AhZApG7RMbr0mWtEhliHGbHib78nw1/B5H9nRy3S+ fDmGRSrAx30QU3svkBljITDstI7sI/bEATXHTM6kIRKPJlovvLPx3ebjOQsWTisLCnuK 3XRA== X-Gm-Message-State: ALoCoQnfEzVLelqeU3WdfUhgiqRZs5XvWih2396s+nbekLTFI349sDMlbJvtrQ6lX/qgfvUz7Aol X-Received: by 10.180.91.233 with SMTP id ch9mr1138616wib.4.1444134467164; Tue, 06 Oct 2015 05:27:47 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.20.230 with SMTP id 99ls584813lfu.32.gmail; Tue, 06 Oct 2015 05:27:46 -0700 (PDT) X-Received: by 10.112.133.42 with SMTP id oz10mr14532911lbb.62.1444134466767; Tue, 06 Oct 2015 05:27:46 -0700 (PDT) Received: from mail-la0-f45.google.com (mail-la0-f45.google.com. [209.85.215.45]) by mx.google.com with ESMTPS id s143si20730870lfe.139.2015.10.06.05.27.46 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Oct 2015 05:27:46 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.45 as permitted sender) client-ip=209.85.215.45; Received: by laddr2 with SMTP id dr2so25652046lad.3 for ; Tue, 06 Oct 2015 05:27:46 -0700 (PDT) X-Received: by 10.112.180.230 with SMTP id dr6mr14177961lbc.72.1444134466661; Tue, 06 Oct 2015 05:27:46 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.112.59.35 with SMTP id w3csp1821035lbq; Tue, 6 Oct 2015 05:27:46 -0700 (PDT) X-Received: by 10.25.20.80 with SMTP id k77mr9385395lfi.117.1444134466023; Tue, 06 Oct 2015 05:27:46 -0700 (PDT) Received: from mail-la0-f50.google.com (mail-la0-f50.google.com. [209.85.215.50]) by mx.google.com with ESMTPS id k5si20740852lfg.108.2015.10.06.05.27.45 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Oct 2015 05:27:45 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.215.50 as permitted sender) client-ip=209.85.215.50; Received: by lafb9 with SMTP id b9so54631808laf.0 for ; Tue, 06 Oct 2015 05:27:45 -0700 (PDT) X-Received: by 10.25.29.20 with SMTP id d20mr9328786lfd.107.1444134465848; Tue, 06 Oct 2015 05:27:45 -0700 (PDT) Received: from localhost.localdomain (c-83-233-167-104.cust.bredband2.com. [83.233.167.104]) by smtp.gmail.com with ESMTPSA id ym7sm5175151lbb.13.2015.10.06.05.27.44 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 06 Oct 2015 05:27:44 -0700 (PDT) From: Ulf Hansson To: "Rafael J. Wysocki" , Kevin Hilman , Ulf Hansson , linux-pm@vger.kernel.org Cc: Len Brown , Pavel Machek , Geert Uytterhoeven , Lina Iyer , Krzysztof Kozlowski Subject: [PATCH 2/4] PM / Domains: Remove pm_genpd_poweroff_unused() API Date: Tue, 6 Oct 2015 14:27:42 +0200 Message-Id: <1444134462-17937-1-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.9.1 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ulf.hansson@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.45 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , As the last user of the pm_genpd_poweroff_unused() API has moved into relying on genpd to deal with this internally from a late_initcall, let's remove the API. Signed-off-by: Ulf Hansson --- drivers/base/power/domain.c | 10 +++------- include/linux/pm_domain.h | 3 --- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c index cf4950d..432d4e3 100644 --- a/drivers/base/power/domain.c +++ b/drivers/base/power/domain.c @@ -502,15 +502,15 @@ static int __init pd_ignore_unused_setup(char *__unused) __setup("pd_ignore_unused", pd_ignore_unused_setup); /** - * pm_genpd_poweroff_unused - Power off all PM domains with no devices in use. + * genpd_poweroff_unused - Power off all PM domains with no devices in use. */ -void pm_genpd_poweroff_unused(void) +static int __init genpd_poweroff_unused(void) { struct generic_pm_domain *genpd; if (pd_ignore_unused) { pr_warn("genpd: Not disabling unused power domains\n"); - return; + return 0; } mutex_lock(&gpd_list_lock); @@ -519,11 +519,7 @@ void pm_genpd_poweroff_unused(void) genpd_queue_power_off_work(genpd); mutex_unlock(&gpd_list_lock); -} -static int __init genpd_poweroff_unused(void) -{ - pm_genpd_poweroff_unused(); return 0; } late_initcall(genpd_poweroff_unused); diff --git a/include/linux/pm_domain.h b/include/linux/pm_domain.h index 384b1d1..faa6922 100644 --- a/include/linux/pm_domain.h +++ b/include/linux/pm_domain.h @@ -126,9 +126,7 @@ extern int pm_genpd_remove_subdomain(struct generic_pm_domain *genpd, struct generic_pm_domain *target); extern void pm_genpd_init(struct generic_pm_domain *genpd, struct dev_power_governor *gov, bool is_off); - extern int pm_genpd_poweron(struct generic_pm_domain *genpd); -extern void pm_genpd_poweroff_unused(void); extern struct dev_power_governor simple_qos_governor; extern struct dev_power_governor pm_domain_always_on_gov; @@ -171,7 +169,6 @@ static inline int pm_genpd_poweron(struct generic_pm_domain *genpd) { return -ENOSYS; } -static inline void pm_genpd_poweroff_unused(void) {} #endif static inline int pm_genpd_add_device(struct generic_pm_domain *genpd,