From patchwork Tue Jun 10 10:51:27 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 31635 Return-Path: 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 ; Tue, 10 Jun 2014 10:52:41 +0000 (UTC) Received: by mail-pb0-f71.google.com with SMTP id jt11sf13155342pbb.10 for ; 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 (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 ; 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 (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 ; 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 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 10 Jun 2014 03:52:37 -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, Kevin Hilman , Alan Stern , Greg Kroah-Hartman , Daniel Lezcano , Tomasz Figa , devicetree@vger.kernel.org, Linus Walleij , Simon Horman , Magnus Damm , Ben Dooks , Kukjin Kim , Stephen Boyd , Philipp Zabel , Mark Brown , Ulf Hansson 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: 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 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 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,