Message ID | 1435374156-19214-7-git-send-email-lina.iyer@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBCLLPU4OUAGBB3FEXCWAKGQET4VEX7I@linaro.org> 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 <linaro@patches.linaro.org>; Sat, 27 Jun 2015 03:03:09 +0000 (UTC) Received: by wgfj7 with SMTP id j7sf31613361wgf.1 for <linaro@patches.linaro.org>; 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 <patchwork-forward@linaro.org> (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 <patchwork-forward@linaro.org>; 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 <rfc822;amit.pundir@linaro.org> + 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 <rfc822;linux-pm@vger.kernel.org>); Fri, 26 Jun 2015 23:02:54 -0400 Received: by pdcu2 with SMTP id u2so84846312pdc.3 for <linux-pm@vger.kernel.org>; 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 <lina.iyer@linaro.org> 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 <lina.iyer@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> Sender: linux-pm-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> 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: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> |
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");
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 <lina.iyer@linaro.org> --- arch/arm/kernel/domains.c | 1 + 1 file changed, 1 insertion(+)