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: 4832911 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 601D9C0338 for ; Wed, 3 Sep 2014 10:53:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 98686201FB for ; Wed, 3 Sep 2014 10:53:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2EA842021F for ; Wed, 3 Sep 2014 10:53:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756294AbaICKxV (ORCPT ); Wed, 3 Sep 2014 06:53:21 -0400 Received: from mail-wi0-f171.google.com ([209.85.212.171]:46833 "EHLO mail-wi0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756180AbaICKxL (ORCPT ); Wed, 3 Sep 2014 06:53:11 -0400 Received: by mail-wi0-f171.google.com with SMTP id hi2so645863wib.10 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=Lq4DGBWvhOU8JQWVnCyZvJWTZbN2v14ZJxi05Vh1krq4BbTmj+p0G121gzLgL2vqqE IMCGgIiH3yasGMbophpjw8kf43/53fYksS8uXYQnHZSg/eFyKtya498lqRxFu/LFwxzI pSUvT46gTQ54tFyahcxPxq1wgImShytMIbeyjuU/AoOitZwo8W5C1kfpD7kFVdo52atP /yOOr954O2HkAJd4VnQOJfs0aQt7rpLmI4nKQabIr7MnCC95KIcDsARmXpj6AMXYnCOG 5xMt8CzzblAtO1IauKpnUDgjqtmRw3ojWtWsoFJNX3K03sD5IPwZBa79EEwampwPHSpJ BmVg== X-Gm-Message-State: ALoCoQk1KO++hAl8JaYJVCyNSKcXuwNITp17jna3Uc5zH2Q/48ENZqt6udLfRFKeTTkvvkny+WNl 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-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@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=unavailable 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,