Message ID | 1402397497-26737-15-git-send-email-ulf.hansson@linaro.org |
---|---|
State | Superseded |
Headers | show
Return-Path: <patchwork-forward+bncBDF57NG2XIHRB6GG3OOAKGQEUXXFEKA@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pb0-f71.google.com (mail-pb0-f71.google.com [209.85.160.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8AC2420675 for <linaro@patches.linaro.org>; Tue, 10 Jun 2014 10:52:41 +0000 (UTC) Received: by mail-pb0-f71.google.com with SMTP id jt11sf13155342pbb.10 for <linaro@patches.linaro.org>; Tue, 10 Jun 2014 03:52:40 -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=mpU4q4zeT/Q1ugSIINtZAIyDPcKUhjUJpco0p389bjU=; b=fhylMf5JR0JvetSVKcdrNt00+HviGzZXlbflZX71r5Nm9vEJamWjL89cVsHFinR1/h YEiVYbXOM3hRAEGjsecT/vMoh2lNal9vC5FXo+LHO3BrG4bXC/Wyd6e7VlmJBZuRc3h/ RpSaie/aGcUxvpVBK4IM1z+e8+FIDSpucyWUR1IJG0CLoFu6t8MNiwgXzgs2SIhD7+Ww ED4cskqtx1SaVnt1CZ6d+WumBI6qOqOl5Fzw3GATgDydrBd/p/xqpZlX5nYV6iEMLlzN Ev4Z7vcVzUxCTjT6SZlXccqaVMJ8ZfjoIMJdNuBUlUpa08FViBdHrMlaQNXBP33XbWRV ACHA== X-Gm-Message-State: ALoCoQksDPFBGOWMC4jahD6TK/uc2oW/ssc80bdL/T+Ofw2HgMEmdAvUR5XXWnKBHkUkLU8V1km9 X-Received: by 10.66.102.9 with SMTP id fk9mr808881pab.2.1402397560901; Tue, 10 Jun 2014 03:52:40 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.84.239 with SMTP id l102ls2022960qgd.81.gmail; Tue, 10 Jun 2014 03:52:40 -0700 (PDT) X-Received: by 10.58.29.76 with SMTP id i12mr76876veh.67.1402397560732; Tue, 10 Jun 2014 03:52:40 -0700 (PDT) Received: from mail-ve0-f177.google.com (mail-ve0-f177.google.com [209.85.128.177]) by mx.google.com with ESMTPS id gx9si12928280vdc.17.2014.06.10.03.52.40 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 10 Jun 2014 03:52:40 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.177 as permitted sender) client-ip=209.85.128.177; Received: by mail-ve0-f177.google.com with SMTP id oz11so3290720veb.36 for <patchwork-forward@linaro.org>; Tue, 10 Jun 2014 03:52:40 -0700 (PDT) X-Received: by 10.220.15.8 with SMTP id i8mr15369370vca.45.1402397560668; Tue, 10 Jun 2014 03:52:40 -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.54.6 with SMTP id vs6csp215556vcb; Tue, 10 Jun 2014 03:52:39 -0700 (PDT) X-Received: by 10.152.10.2 with SMTP id e2mr803574lab.76.1402397559156; Tue, 10 Jun 2014 03:52:39 -0700 (PDT) Received: from mail-la0-f42.google.com (mail-la0-f42.google.com [209.85.215.42]) by mx.google.com with ESMTPS id u3si21046949laj.103.2014.06.10.03.52.38 for <patches@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 10 Jun 2014 03:52:39 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.215.42 as permitted sender) client-ip=209.85.215.42; Received: by mail-la0-f42.google.com with SMTP id el20so3856344lab.15 for <patches@linaro.org>; Tue, 10 Jun 2014 03:52:38 -0700 (PDT) X-Received: by 10.112.130.229 with SMTP id oh5mr1717695lbb.49.1402397558581; Tue, 10 Jun 2014 03:52:38 -0700 (PDT) Received: from linaro-ulf.lan (90-231-160-185-no158.tbcn.telia.com. [90.231.160.185]) by mx.google.com with ESMTPSA id y6sm18329925laj.17.2014.06.10.03.52.35 for <multiple recipients> (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 10 Jun 2014 03:52:37 -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, Kevin Hilman <khilman@linaro.org>, Alan Stern <stern@rowland.harvard.edu>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Daniel Lezcano <daniel.lezcano@linaro.org>, Tomasz Figa <tomasz.figa@gmail.com>, devicetree@vger.kernel.org, Linus Walleij <linus.walleij@linaro.org>, 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 14/24] PM / Domains: Add late_initcall to disable unused domains Date: Tue, 10 Jun 2014 12:51:27 +0200 Message-Id: <1402397497-26737-15-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1402397497-26737-1-git-send-email-ulf.hansson@linaro.org> References: <1402397497-26737-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.128.177 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: <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe>, <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com> |
diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c index 825e81d..095a4fa4 100644 --- a/drivers/base/power/domain.c +++ b/drivers/base/power/domain.c @@ -722,6 +722,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 domains. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> --- drivers/base/power/domain.c | 7 +++++++ 1 file changed, 7 insertions(+)