Message ID | 1394563214-26007-2-git-send-email-sebastian.capella@linaro.org |
---|---|
State | Superseded |
Headers | show
Return-Path: <patchwork-forward+bncBDHNDAGIUACRBIFR7WMAKGQESTIG3GY@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f198.google.com (mail-ve0-f198.google.com [209.85.128.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C9F5520068 for <linaro@patches.linaro.org>; Tue, 11 Mar 2014 18:40:32 +0000 (UTC) Received: by mail-ve0-f198.google.com with SMTP id oz11sf22597164veb.5 for <linaro@patches.linaro.org>; Tue, 11 Mar 2014 11:40:32 -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=e+k1GcDeYN4CDwqWQssBDTqoYfkkYJRnTmJloMBOd0U=; b=jMhOQ1mA++//F3pjDgQUPDb2/EwShr2C9GkyBYQp6HEqqQ9wEu4wmbR2vlQiXdldcb b2AxjapHI88oWn9Ypnmjo3cZO9uZ0p2x1doLNTsFRgFCrTgLW1C2QcKJECwYRHdYu6vL 1HQC0OhLAnXc9O+tEeK0ALvhL1+XF28/I2VTH2FqiGNpHo79Ydl6q7ROkgL7eg74ayvO CHsuucY0dkKQvYE1Hjil6dvKY1Mz6dqwzxEebVQWYRuWddZWD+0EqCsLd+2D/4JjdGlr XQbsgUsgPI7eV6LKwNwJnST9lkusQfWSdjKszb6bIbAoaqrgR+O2CH3kCOckdGIUMTYJ yHXQ== X-Gm-Message-State: ALoCoQnf085+dZypwerhTofQ8mdeJjU++4D/3IyA+KAlVRYiceMGdBNhHT3h+d+ns8vhSCf+wwBY X-Received: by 10.236.181.74 with SMTP id k50mr1688090yhm.46.1394563232616; Tue, 11 Mar 2014 11:40:32 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.42.138 with SMTP id c10ls2703729qga.63.gmail; Tue, 11 Mar 2014 11:40:32 -0700 (PDT) X-Received: by 10.220.92.135 with SMTP id r7mr28609592vcm.11.1394563232441; Tue, 11 Mar 2014 11:40:32 -0700 (PDT) Received: from mail-vc0-f181.google.com (mail-vc0-f181.google.com [209.85.220.181]) by mx.google.com with ESMTPS id ry8si6699479vdc.84.2014.03.11.11.40.32 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 11 Mar 2014 11:40:32 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.181 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.181; Received: by mail-vc0-f181.google.com with SMTP id id10so2690417vcb.40 for <patchwork-forward@linaro.org>; Tue, 11 Mar 2014 11:40:32 -0700 (PDT) X-Received: by 10.58.170.69 with SMTP id ak5mr1827868vec.28.1394563232353; Tue, 11 Mar 2014 11:40:32 -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.220.78.9 with SMTP id i9csp226804vck; Tue, 11 Mar 2014 11:40:31 -0700 (PDT) X-Received: by 10.66.164.165 with SMTP id yr5mr48776986pab.63.1394563228830; Tue, 11 Mar 2014 11:40:28 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q5si21029158pbh.44.2014.03.11.11.40.28; Tue, 11 Mar 2014 11:40:28 -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 S1755257AbaCKSkZ (ORCPT <rfc822;patch@linaro.org> + 11 others); Tue, 11 Mar 2014 14:40:25 -0400 Received: from mail-pb0-f45.google.com ([209.85.160.45]:47542 "EHLO mail-pb0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755131AbaCKSkX (ORCPT <rfc822;linux-pm@vger.kernel.org>); Tue, 11 Mar 2014 14:40:23 -0400 Received: by mail-pb0-f45.google.com with SMTP id uo5so9173664pbc.4 for <linux-pm@vger.kernel.org>; Tue, 11 Mar 2014 11:40:23 -0700 (PDT) X-Received: by 10.66.139.100 with SMTP id qx4mr49298840pab.141.1394563223151; Tue, 11 Mar 2014 11:40:23 -0700 (PDT) Received: from localhost (cpe-76-93-135-111.san.res.rr.com. [76.93.135.111]) by mx.google.com with ESMTPSA id c7sm76140475pbt.0.2014.03.11.11.40.20 for <multiple recipients> (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 11 Mar 2014 11:40:21 -0700 (PDT) From: Sebastian Capella <sebastian.capella@linaro.org> To: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linaro-kernel@lists.linaro.org, linux-arm-kernel@lists.infradead.org Cc: Sebastian Capella <sebastian.capella@linaro.org>, Russell King <linux@arm.linux.org.uk>, Andrew Morton <akpm@linux-foundation.org>, Thomas Gleixner <tglx@linutronix.de>, Will Deacon <will.deacon@arm.com>, Robin Holt <robin.m.holt@gmail.com>, Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>, Konstantin Khlebnikov <k.khlebnikov@samsung.com>, Steven Capper <steve.capper@linaro.org>, Stephen Warren <swarren@nvidia.com>, Tejun Heo <tj@kernel.org> Subject: [PATCH v8 1/2] ARM: avoid tracers in soft_restart Date: Tue, 11 Mar 2014 11:40:13 -0700 Message-Id: <1394563214-26007-2-git-send-email-sebastian.capella@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1394563214-26007-1-git-send-email-sebastian.capella@linaro.org> References: <1394563214-26007-1-git-send-email-sebastian.capella@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: sebastian.capella@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.181 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) 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: <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe>, <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com> |
diff --git a/arch/arm/kernel/process.c b/arch/arm/kernel/process.c index 92f7b15..f58b723 100644 --- a/arch/arm/kernel/process.c +++ b/arch/arm/kernel/process.c @@ -100,7 +100,7 @@ void soft_restart(unsigned long addr) u64 *stack = soft_restart_stack + ARRAY_SIZE(soft_restart_stack); /* Disable interrupts first */ - local_irq_disable(); + raw_local_irq_disable(); local_fiq_disable(); /* Disable the L2 if we're the last man standing. */
Use of tracers in local_irq_disable is causes recursive aborts when called with irqs disabled and using a temporary stack (hibernation). Replace local_irq_disable with raw_local_irq_disable instead to avoid tracers. Signed-off-by: Sebastian Capella <sebastian.capella@linaro.org> Cc: Russell King <linux@arm.linux.org.uk> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Will Deacon <will.deacon@arm.com> Cc: Robin Holt <robin.m.holt@gmail.com> Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Cc: Konstantin Khlebnikov <k.khlebnikov@samsung.com> Cc: Steven Capper <steve.capper@linaro.org> Cc: Stephen Warren <swarren@nvidia.com> Cc: Tejun Heo <tj@kernel.org> --- arch/arm/kernel/process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)