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: 4832831 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id B5BDD9F32E for ; Wed, 3 Sep 2014 10:53:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4B71C202E5 for ; Wed, 3 Sep 2014 10:53:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0D9DF2024D for ; Wed, 3 Sep 2014 10:53:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756207AbaICKxO (ORCPT ); Wed, 3 Sep 2014 06:53:14 -0400 Received: from mail-wg0-f50.google.com ([74.125.82.50]:39034 "EHLO mail-wg0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756211AbaICKxL (ORCPT ); Wed, 3 Sep 2014 06:53:11 -0400 Received: by mail-wg0-f50.google.com with SMTP id x12so8405309wgg.9 for ; Wed, 03 Sep 2014 03:53:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=w3Bxj3NQPKTAn5au6hjSQkZ3ZAnD04Ft/dRbDIqktM4=; b=SH2rsGEaSOdc9YoH/okPXCiO/Z2fppTkfgt0SgkIgX20pk0kdjzZKnOcEOs2mUSXxo EW1abBBtT9lpaeJ0vvOrbujM7hsJkyDSzomPcHElNy7w+5a9DphXl2nNKr7TxNufjSo4 I6JEKI67JjIAejr35sdFiz9MBs3jwwAIDT6K39drR3RmBzdncXg996YanMyJmsrIhGuc CT8fGGhSLYqMYUuRJJwi3y6UtSnEqiRqb526avRlDjcPyyZ9hxf8s6JgtnCBGwjiscC8 QocIbE5gdACNz4KscoMWXwnts0xtQWrTWYrdzFZnmPqcoO05JUI6NxMh3D1TTMpVHIsR kbgg== X-Gm-Message-State: ALoCoQlHC677iU9UsGJw9E+z9dd/BYeKtcG0rJ5QwDt7QdLx2UOC5Fp/BS39xbfaZBkdWOtZJOq2 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> Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-8.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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,