From patchwork Wed Sep 3 10:52:26 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 36560 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f198.google.com (mail-pd0-f198.google.com [209.85.192.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D2A792039B for ; Wed, 3 Sep 2014 10:53:19 +0000 (UTC) Received: by mail-pd0-f198.google.com with SMTP id fp1sf48803312pdb.1 for ; Wed, 03 Sep 2014 03:53:13 -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:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=w3Bxj3NQPKTAn5au6hjSQkZ3ZAnD04Ft/dRbDIqktM4=; b=SKEidj0R/6i/nLhvY/RK3mb6+zKDo5bvC4VHwxB8NIMuAFGCPtTGFnkXfS/8D/kucF PqN4hyN8HTS/g8J/lMZ0Ot8abFe1myC3fRzkANNWD6hBL5UaYl5gyd7dyRw5YIB8xWRP LrXRghE7sef9VNMnIfbKz7RFn6O/Yx4WFG9nrAJXr6bXvkVLgplUmZ38/KO9CvEjZWSc RKvtQY1B/yQqQo5B6ZzH1Ns4RaVDFOjGQTBN7/bMfyf9iLzD30jzgvxPwf6Sonj2qmgC bmjPITmdi5p7BUtQ1eN+e0HeXZ3qOI8WYixyL9il0Hjm3mA4c7+ZjlaL1lvqZqIu3nCX OIjw== X-Gm-Message-State: ALoCoQn8wPFr/r0+Ng4So6ymKDs9Jb8ty0foFYAaAxzbRgW/8Mtj+xreqfwQhdz7Si63lWJY5N2A X-Received: by 10.66.124.136 with SMTP id mi8mr22477141pab.15.1409741591921; Wed, 03 Sep 2014 03:53:11 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.30.245 with SMTP id d108ls1976331qgd.68.gmail; Wed, 03 Sep 2014 03:53:11 -0700 (PDT) X-Received: by 10.220.250.142 with SMTP id mo14mr34354697vcb.26.1409741591728; Wed, 03 Sep 2014 03:53:11 -0700 (PDT) Received: from mail-vc0-f172.google.com (mail-vc0-f172.google.com [209.85.220.172]) by mx.google.com with ESMTPS id r2si655563vda.106.2014.09.03.03.53.11 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 03 Sep 2014 03:53:11 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.172 as permitted sender) client-ip=209.85.220.172; Received: by mail-vc0-f172.google.com with SMTP id ij19so8554909vcb.31 for ; Wed, 03 Sep 2014 03:53:11 -0700 (PDT) X-Received: by 10.220.132.207 with SMTP id c15mr35088653vct.12.1409741591663; Wed, 03 Sep 2014 03:53:11 -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.221.45.67 with SMTP id uj3csp660746vcb; Wed, 3 Sep 2014 03:53:11 -0700 (PDT) X-Received: by 10.180.75.144 with SMTP id c16mr35238552wiw.9.1409741590776; Wed, 03 Sep 2014 03:53:10 -0700 (PDT) Received: from mail-wg0-f43.google.com (mail-wg0-f43.google.com [74.125.82.43]) by mx.google.com with ESMTPS id et10si2279702wib.43.2014.09.03.03.53.10 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 03 Sep 2014 03:53:10 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 74.125.82.43 as permitted sender) client-ip=74.125.82.43; Received: by mail-wg0-f43.google.com with SMTP id a1so8171826wgh.2 for ; Wed, 03 Sep 2014 03:53:10 -0700 (PDT) X-Received: by 10.194.219.193 with SMTP id pq1mr46082422wjc.5.1409741590369; Wed, 03 Sep 2014 03:53:10 -0700 (PDT) Received: from localhost.localdomain ([85.235.11.236]) by mx.google.com with ESMTPSA id j7sm3968190wia.9.2014.09.03.03.53.08 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 03 Sep 2014 03:53:09 -0700 (PDT) From: Ulf Hansson To: "Rafael J. Wysocki" , Len Brown , Pavel Machek , linux-pm@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-sh@vger.kernel.org, linux-samsung-soc@vger.kernel.org, Geert Uytterhoeven , Kevin Hilman , Daniel Lezcano , Tomasz Figa , Simon Horman , Magnus Damm , Ben Dooks , Kukjin Kim , Stephen Boyd , Philipp Zabel , Mark Brown , Ulf Hansson Subject: [PATCH 10/15] PM / Domains: Add late_initcall to disable unused PM domains Date: Wed, 3 Sep 2014 12:52:26 +0200 Message-Id: <1409741551-16437-11-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1409741551-16437-1-git-send-email-ulf.hansson@linaro.org> References: <1409741551-16437-1-git-send-email-ulf.hansson@linaro.org> 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.220.172 as permitted sender) smtp.mail=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 default behavior let genpd at late init try to disable the unused PM domains. Signed-off-by: Ulf Hansson --- drivers/base/power/domain.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c index d71d045..cf4651a 100644 --- a/drivers/base/power/domain.c +++ b/drivers/base/power/domain.c @@ -721,6 +721,13 @@ void pm_genpd_poweroff_unused(void) mutex_unlock(&gpd_list_lock); } +static int __init genpd_poweroff_unused(void) +{ + pm_genpd_poweroff_unused(); + return 0; +} +late_initcall(genpd_poweroff_unused); + #else static inline int genpd_dev_pm_qos_notifier(struct notifier_block *nb,