Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1511235imc; Mon, 11 Mar 2019 15:50:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqyVMdUsnMz2aafoJvgNCpdQ2DoeAU2NI7tMCvWRznhgZ9QsESf++uTVGcl3kXv5MOJjglG0 X-Received: by 2002:aa7:9102:: with SMTP id 2mr34872250pfh.179.1552344608289; Mon, 11 Mar 2019 15:50:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552344608; cv=none; d=google.com; s=arc-20160816; b=KRYBBGjqrZYKC/H+np1c2dwwBo/UOxgxcCvnhzvkdN9C1EewiKjMiZq9Px+N1KgJek fQDODrNphBcCsKjfdXU29C1wn9Pg5P/LjmTzvdv6I/gskxqJ82WDwEWrAxNYw7vLB1l/ qle0SHrz5B0sf4OvgtOhSaa7xo+Fm/bxKgtrcnoTM49Yhm/Z8rEQHVYXtPJizv08v3vJ j3z232DkM4b5e5Z5J+kGxrb1RrAuJALc3gEaYhSC6GyEyIxhOv45p98DSV6i3suTPMNz EgdGkrBjcStjCqeslrEmt3YYzB6aHwTcxM/IcxYRsMvXy/J4iybdMHulI+0c+pnZG9jZ Ty1w== 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=dSxVRBDhGwvXjqxFWfT/6Zcz70xHVm/iCBNtioYDUZI=; b=Cl2aYgX2n8KZmoK6r7c+EewiHp91ZSc0NUXkeud0XSxyPpvc27WLSTXmIiCeFObS18 ClijcW+rHinJ9Zt1qx6/Tg13w4QO4fj1dA067brZu0oqnpFXUZlkhivo/cfBKaELNk1D JQDx8qraME49rORaRg1yZeQ8dz718GRICwxzPvRM6mPGPyxfdm+UB3uBjZfjVY6TNFue fDom2Kn+JQkcnpfXlQEOQIZ5YzWm9JnjpQE+5DDUimDgku7pd7oEBFCupHZgVCfKwGIg tgMrULUHct+aqdY3Be10GVdt69icZ69RGzMdyx6WnNjXCkOWQhx4LSd4FcT/OEOJ0Lo/ xLlw== 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 t9si5726998pgv.111.2019.03.11.15.49.53; Mon, 11 Mar 2019 15:50:08 -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 S1726838AbfCKWtA (ORCPT + 99 others); Mon, 11 Mar 2019 18:49:00 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:33916 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726591AbfCKWsM (ORCPT ); Mon, 11 Mar 2019 18:48:12 -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 6C3A41688; Mon, 11 Mar 2019 15:48:12 -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 7613C3F59C; Mon, 11 Mar 2019 15:48:11 -0700 (PDT) From: Valentin Schneider To: linux-kernel@vger.kernel.org Cc: Yoshinori Sato , uclinux-h8-devel@lists.sourceforge.jp Subject: [PATCH 04/14] h8300: entry: Remove unneeded need_resched() loop Date: Mon, 11 Mar 2019 22:47:42 +0000 Message-Id: <20190311224752.8337-5-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: Yoshinori Sato Cc: uclinux-h8-devel@lists.sourceforge.jp --- arch/h8300/kernel/entry.S | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/h8300/kernel/entry.S b/arch/h8300/kernel/entry.S index 4ade5f8299ba..6bde028e7d4a 100644 --- a/arch/h8300/kernel/entry.S +++ b/arch/h8300/kernel/entry.S @@ -323,7 +323,6 @@ restore_all: resume_kernel: mov.l @(TI_PRE_COUNT:16,er4),er0 bne restore_all:8 -need_resched: mov.l @(TI_FLAGS:16,er4),er0 btst #TIF_NEED_RESCHED,r0l beq restore_all:8 @@ -332,7 +331,7 @@ need_resched: mov.l sp,er0 jsr @set_esp0 jsr @preempt_schedule_irq - bra need_resched:8 + bra restore_all:8 #endif ret_from_fork: -- 2.20.1