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: 50389 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f70.google.com (mail-wg0-f70.google.com [74.125.82.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 23A7A228FD for ; Sat, 27 Jun 2015 03:03:09 +0000 (UTC) Received: by wgfj7 with SMTP id j7sf31613361wgf.1 for ; Fri, 26 Jun 2015 20:03:08 -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:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=mF2cmMrg2v9mjNLLQ5GycpVqLTm0wy5F3oq1T2aI74A=; b=QJ9PYfpjTr1sDDd/L5ylQctFkn1Rn0rg6gMSzlBrkYKPQcNwbzmMZYqtKdJd343yqg p4oObz6haM7BEvp+d/uKHdXsj2C+C7snCkQSa71Y85K9+24GkAK5A3PhwtI70xggbVX/ qLs1YdDl3qln3kLIIFKQSVB4bpLIX9EpObt9IzmuASw4phQO+wp/fair638gx7AL63TB /YgaK10nvCLJFQ8YjA8mSJkcBtecbSVXY/HtclKrk9ZkEmDtHYGvNNJUhv6EBtXFhchE glTlCRKBw11peOz3ZCgDrZfVmOJIlDmir6LHPkCJr2D3vHxaSELmgRFg70G9Djkb4mtI SATQ== X-Gm-Message-State: ALoCoQmtMG7R3MvWxJoBDPYPt7WMmgj1qI+p5c7sDkiZtAfmEtpd4t50YPJrJYjzpB4RhQnldBgO X-Received: by 10.180.35.162 with SMTP id i2mr918864wij.6.1435374188332; Fri, 26 Jun 2015 20:03:08 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.184.168 with SMTP id ev8ls569738lac.44.gmail; Fri, 26 Jun 2015 20:03:08 -0700 (PDT) X-Received: by 10.112.48.68 with SMTP id j4mr4270103lbn.60.1435374188162; Fri, 26 Jun 2015 20:03:08 -0700 (PDT) Received: from mail-la0-f43.google.com (mail-la0-f43.google.com. [209.85.215.43]) by mx.google.com with ESMTPS id rn3si28998599lbb.5.2015.06.26.20.03.08 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Jun 2015 20:03:08 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.43 as permitted sender) client-ip=209.85.215.43; Received: by lagh6 with SMTP id h6so2716907lag.2 for ; Fri, 26 Jun 2015 20:03:08 -0700 (PDT) X-Received: by 10.152.37.228 with SMTP id b4mr4252350lak.117.1435374188062; Fri, 26 Jun 2015 20:03:08 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp295203lbb; Fri, 26 Jun 2015 20:03:07 -0700 (PDT) X-Received: by 10.66.155.36 with SMTP id vt4mr9508013pab.32.1435374176342; Fri, 26 Jun 2015 20:02:56 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g6si51225212pat.122.2015.06.26.20.02.55; Fri, 26 Jun 2015 20:02:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751764AbbF0DCy (ORCPT + 11 others); Fri, 26 Jun 2015 23:02:54 -0400 Received: from mail-pd0-f176.google.com ([209.85.192.176]:35870 "EHLO mail-pd0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751720AbbF0DCy (ORCPT ); Fri, 26 Jun 2015 23:02:54 -0400 Received: by pdcu2 with SMTP id u2so84846312pdc.3 for ; Fri, 26 Jun 2015 20:02:53 -0700 (PDT) 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 Cc: geert@linux-m68k.org, k.kozlowski@samsung.com, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, msivasub@codeaurora.org, agross@codeaurora.org, Lina Iyer 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> Sender: linux-pm-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: lina.iyer@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.215.43 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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");