Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1510935imc; Mon, 11 Mar 2019 15:49:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqz6p2Rxb9fE8yX83a6qqhoirHLMMOvzFy8zn5D7h8OBK8D3wr6pZHK3z8r58fGMNerT+iCR X-Received: by 2002:a17:902:f01:: with SMTP id 1mr35667712ply.41.1552344568114; Mon, 11 Mar 2019 15:49:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552344568; cv=none; d=google.com; s=arc-20160816; b=WXKXs4xsbT2PCwVoezPIlpMAmu0ys5s8SJU3HVQ6E8GKhFv4iBejsyQofBcMC2ksOC bgRfySb1gibnaGuVKo+FS8zDAq+Ep3e0dj+YD+4WnFlzEfer2e7djXy/a+78rSvOvD07 WENja6VKw0QPmjdHPeGA1qvztRqUmqZxKoYNeAGxJ0xJYwv3n/jaAy1ixCVE4Kis4FHT 6zS2TCvVtkz15pJWSBeTSfJ7UXrBuFGbkETdoCRAAgZt1Hiw8YVuXX3BZkVJ5mFQK1/b PBEEoFsR4ur0yN6g4FqiezOiVijSLCEx9B7bdxanyyOP7R86blsSep8amMw8LZw3j5y3 uk6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=ezoV4YodcTaOGzGgO3W2ngaGI/kwq81uhARP37/l7pw=; b=nePnYOnLCeCDQp52cubqFbGb9/gEmKkBIzuHNb+j1pHyAd1jgFV243jD/cnv2PwVNa efRwZB2y/yA2fdraCco4I48k9/kWQkm8kqaHn7gOC0x1UFFxG3TGTUPO/y0furyssytP mdH91AOdGbbPP0xtrvkEpLIzFUTd/sKifZLrSq6HnH9KS2Pj10BeWM7oO5NvVqQcVrna S8HyL6n3fZQGLgly295g7OrRi0yc2Zmi+SMwZezgc7GlABztsrtMvIYNDe8Way1SB0c2 mcqtCXL1LTTXgSBTRnHfxhCHPGS+yN8Tua2kywaLvfCAYSZ6tGHB/1xKhar8TeF9mFXe umBA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r33si5941865pgm.248.2019.03.11.15.49.12; Mon, 11 Mar 2019 15:49:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726805AbfCKWsf (ORCPT + 99 others); Mon, 11 Mar 2019 18:48:35 -0400 Received: from foss.arm.com ([217.140.101.70]:34010 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726761AbfCKWs0 (ORCPT ); Mon, 11 Mar 2019 18:48:26 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0FAF2A78; Mon, 11 Mar 2019 15:48:26 -0700 (PDT) Received: from e113632-lin.cambridge.arm.com (e113632-lin.cambridge.arm.com [10.1.194.37]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id EB0BD3F59C; Mon, 11 Mar 2019 15:48:24 -0700 (PDT) From: Valentin Schneider To: linux-kernel@vger.kernel.org Cc: Chris Zankel , Max Filippov , linux-xtensa@linux-xtensa.org Subject: [PATCH 14/14] xtensa: entry: Remove unneeded need_resched() loop Date: Mon, 11 Mar 2019 22:47:52 +0000 Message-Id: <20190311224752.8337-15-valentin.schneider@arm.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190311224752.8337-1-valentin.schneider@arm.com> References: <20190311224752.8337-1-valentin.schneider@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since the enabling and disabling of IRQs within preempt_schedule_irq() is contained in a need_resched() loop, we don't need the outer arch code loop. Signed-off-by: Valentin Schneider Cc: Chris Zankel Cc: Max Filippov Cc: linux-xtensa@linux-xtensa.org --- arch/xtensa/kernel/entry.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/xtensa/kernel/entry.S b/arch/xtensa/kernel/entry.S index e50f5124dc6f..43ecaac14ae6 100644 --- a/arch/xtensa/kernel/entry.S +++ b/arch/xtensa/kernel/entry.S @@ -529,7 +529,7 @@ common_exception_return: l32i a4, a2, TI_PRE_COUNT bnez a4, 4f call4 preempt_schedule_irq - j 1b + j 4f #endif #if XTENSA_FAKE_NMI -- 2.20.1