From patchwork Sat Jun 27 03:02:26 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lina Iyer X-Patchwork-Id: 6684581 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 868A29F399 for ; Sat, 27 Jun 2015 03:07:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B190820561 for ; Sat, 27 Jun 2015 03:07:34 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D0BF220553 for ; Sat, 27 Jun 2015 03:07:33 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z8gQZ-0008D3-Ch; Sat, 27 Jun 2015 03:05:11 +0000 Received: from mail-pd0-f181.google.com ([209.85.192.181]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z8gOh-0006vW-2A for linux-arm-kernel@lists.infradead.org; Sat, 27 Jun 2015 03:03:16 +0000 Received: by pdjn11 with SMTP id n11so84890903pdj.0 for ; Fri, 26 Jun 2015 20:02:53 -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=Zab6aPKt2oKILeNmjFkzksme39QCz1pYwy70H9wxF3U=; b=Tu9L26pDO46L4j7JziNWQK0WTWGtVkBu6HUD29nRuvJJKeY6JFwXE3b0BkBKa0HbA4 nIwSCPdB2vHRPSW+1uvQnpMYT7rcRpVTiJqkrKcSJww0DVKD5R5wDGU2f1jym7r2sVjG itjnmBSwx8evtzV9h/Y1tfbswT0xgpFhRGHNl9OM92vLDw+cN3tjzY2mYd+j3u5wQUEB a+Osu5m2g6g2y9VsYVbN0WfEhQSQTHXpnlcqC1gbpU4WzDqMyC8BLL/8hm++Rd+D8jah vRTIMAsZ4UnyddoDEGXwCLypL30iubdD5ClV00xlma1XKYJuwVaGjj0DlaSGX5YbSgdM WRiw== X-Gm-Message-State: ALoCoQkvfGIqaGr/5ONKeIcBE1UwdmYJXs8aSZJ0QnqjUNPyhK03xDolJPi0A97+EAOiFyGRc7r7 X-Received: by 10.70.127.203 with SMTP id ni11mr9401288pdb.74.1435374173889; Fri, 26 Jun 2015 20:02:53 -0700 (PDT) Received: from ubuntu.localdomain (c-24-8-37-141.hsd1.co.comcast.net. [24.8.37.141]) by mx.google.com with ESMTPSA id j7sm34787756pdp.83.2015.06.26.20.02.52 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 26 Jun 2015 20:02:53 -0700 (PDT) From: Lina Iyer To: rjw@rjwysocki.net, ulf.hansson@linaro.org, khilman@linaro.org Subject: [PATCH RFC v2 06/16] arm: domain: Make CPU genpd IRQ safe Date: Fri, 26 Jun 2015 21:02:26 -0600 Message-Id: <1435374156-19214-7-git-send-email-lina.iyer@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1435374156-19214-1-git-send-email-lina.iyer@linaro.org> References: <1435374156-19214-1-git-send-email-lina.iyer@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150626_200315_165818_DB24AA83 X-CRM114-Status: GOOD ( 10.56 ) X-Spam-Score: -2.6 (--) Cc: k.kozlowski@samsung.com, linux-pm@vger.kernel.org, msivasub@codeaurora.org, geert@linux-m68k.org, Lina Iyer , agross@codeaurora.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 Generic PM domains that support runtime suspend/resume in IRQ safe contexts should define GENPD_FLAG_IRQ_SAFE flag for the genpd. CPUIdle powers off the CPUs in an IRQ safe context and therefore CPU domains that use CPUIlde for runtime suspend/resume would need to operate as IRQ safe domains. Define GENPD_FLAG_IRQ_SAFE for CPU domains. Signed-off-by: Lina Iyer --- arch/arm/kernel/domains.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/kernel/domains.c b/arch/arm/kernel/domains.c index 3248409..a27f825 100644 --- a/arch/arm/kernel/domains.c +++ b/arch/arm/kernel/domains.c @@ -90,6 +90,7 @@ static int arm_domain_init(void) pd->genpd.name = kstrdup(np->name, GFP_KERNEL); pd->genpd.power_off = arm_pd_power_down; pd->genpd.power_on = arm_pd_power_up; + pd->genpd.flags |= GENPD_FLAG_IRQ_SAFE; platform_set_drvdata(pdev, pd); dev_dbg(dev, "adding as generic power domain.\n");