Message ID | 1409741551-16437-11-git-send-email-ulf.hansson@linaro.org |
---|---|
State | Accepted |
Commit | 2fe71dcdfd10d3f71bb559609a8ceda9f76b1e2c |
Headers | show
Return-Path: <patchwork-forward+bncBDF57NG2XIHRBF7GTOQAKGQEG3ZRYIY@linaro.org> 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 <linaro@patches.linaro.org>; Wed, 3 Sep 2014 10:53:19 +0000 (UTC) Received: by mail-pd0-f198.google.com with SMTP id fp1sf48803312pdb.1 for <linaro@patches.linaro.org>; 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 <patchwork-forward@linaro.org> (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 <patchwork-forward@linaro.org>; 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 <patches@linaro.org> (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 <patches@linaro.org>; 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 <multiple recipients> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 03 Sep 2014 03:53:09 -0700 (PDT) From: Ulf Hansson <ulf.hansson@linaro.org> To: "Rafael J. Wysocki" <rjw@rjwysocki.net>, Len Brown <len.brown@intel.com>, Pavel Machek <pavel@ucw.cz>, 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 <geert+renesas@glider.be>, Kevin Hilman <khilman@linaro.org>, Daniel Lezcano <daniel.lezcano@linaro.org>, Tomasz Figa <tomasz.figa@gmail.com>, Simon Horman <horms@verge.net.au>, Magnus Damm <magnus.damm@gmail.com>, Ben Dooks <ben-linux@fluff.org>, Kukjin Kim <kgene.kim@samsung.com>, Stephen Boyd <sboyd@codeaurora.org>, Philipp Zabel <philipp.zabel@gmail.com>, Mark Brown <broonie@kernel.org>, Ulf Hansson <ulf.hansson@linaro.org> 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: <patchwork-forward.linaro.org> X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> |
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,
As default behavior let genpd at late init try to disable the unused PM domains. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> --- drivers/base/power/domain.c | 7 +++++++ 1 file changed, 7 insertions(+)