From patchwork Wed Feb 26 00:01:59 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Capella X-Patchwork-Id: 3719321 Return-Path: X-Original-To: patchwork-linux-pm@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 220AFBF13A for ; Wed, 26 Feb 2014 00:02:54 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 431392018E for ; Wed, 26 Feb 2014 00:02:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 76E0A201FD for ; Wed, 26 Feb 2014 00:02:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753389AbaBZACP (ORCPT ); Tue, 25 Feb 2014 19:02:15 -0500 Received: from mail-pb0-f50.google.com ([209.85.160.50]:54242 "EHLO mail-pb0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753373AbaBZACN (ORCPT ); Tue, 25 Feb 2014 19:02:13 -0500 Received: by mail-pb0-f50.google.com with SMTP id md12so150741pbc.23 for ; Tue, 25 Feb 2014 16:02:13 -0800 (PST) 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=UeqYitqTWNEcEnmyWW73TPPA5fPBOvLTZvnNDnP1fU0=; b=fNgN68Vy5IXkp2bVZMyUYwpA8pdFVVpYMMV93e7k/51oEU67t3O3cpbiaO5a/P07hI wPr5eWL0+3FGgGLKvxKOaojrH46j6zT2lFDhCCMnlLL4UmIzz9Jc5CUgPUcv3MwbwxW6 U7W2hV9GZWbVml+k6/WSx77LIZ2GB2ZA9gFqGK1dL1Xx36k/TWglXok1Nr2ZnLWe169O 2Pcm5iYoEsHx98Bb/9tKgcVcwpy02iVWVgMgG5qXszm1MxjrTfb6CayNphBrTT7sWUB1 BOYcbZw2dN9WosoopZsg36iPyppn1u6zWU8wXWZbw7De29tJSYXoaa8pKt9BuIRsZ4w4 qUMQ== X-Gm-Message-State: ALoCoQnZmxJNrRrCStGfhobBYyrEyMt5GjME6H+E9v+5B27Vc4WR8AqWbKABL5UkpRfwh/XSup7B X-Received: by 10.66.66.202 with SMTP id h10mr4818988pat.70.1393372933000; Tue, 25 Feb 2014 16:02:13 -0800 (PST) Received: from localhost (cpe-76-93-135-111.san.res.rr.com. [76.93.135.111]) by mx.google.com with ESMTPSA id vg1sm14597590pbc.44.2014.02.25.16.02.09 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 25 Feb 2014 16:02:11 -0800 (PST) From: Sebastian Capella 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 , Russell King , Andrew Morton , Thomas Gleixner , Will Deacon , Robin Holt Subject: [PATCH v3 2/3] ARM: avoid tracers in soft_restart Date: Tue, 25 Feb 2014 16:01:59 -0800 Message-Id: <1393372920-3896-3-git-send-email-sebastian.capella@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1393372920-3896-1-git-send-email-sebastian.capella@linaro.org> References: <1393372920-3896-1-git-send-email-sebastian.capella@linaro.org> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-6.9 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 Use of tracers in local_irq_disable is causes abort loops when called with irqs disabled using a temporary stack. Replace local_irq_disable with raw_local_irq_disable instead to avoid tracers. Signed-off-by: Sebastian Capella Cc: Russell King Cc: Andrew Morton Cc: Thomas Gleixner Cc: Will Deacon Cc: Robin Holt --- arch/arm/kernel/process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. */