Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1075614ybn; Wed, 25 Sep 2019 12:02:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqxQvEtCZwoHUvKE/h2ji+W9rPmjMHK3PIff+oBDXmk/fJqTa2ba9VLwrsHHXsPjKyzwgV5O X-Received: by 2002:a50:9eee:: with SMTP id a101mr4558045edf.128.1569438122035; Wed, 25 Sep 2019 12:02:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569438122; cv=none; d=google.com; s=arc-20160816; b=o7EpcFLKF4O2Z42h1NzhvCxbqPCekQcnX+HXDbzwyJvgJieWwWON4A17CWge0VhST2 781fXsABIooxU4slvUDC4dOtTexL0o2nPK4KD2k4PsinR0OxqGzKnPbYpzTTAxwjQT+y Gja+NeM8aSNMPlEw66QSFYXLqqFR4mFojsaqhxlunoqMvxaoQcjMHD3JT+tOfk9qOGmU pKRoaMN9wGFpeOoL27s5kmF21UcLkSWDCk3WCji/WAQz2n1tNXcirdZnMRvoqKdpuLuz nY3rohTEHTL9d/G9wJD1va/Gp6cEaQUcekAwDJZkmfVbYm7QtNuwoUIHqKxL6GedahMw vbqg== 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=L0TYFNBIYL++/to7SpdYKp6BbWCe4tFf85f8XyQYYBw=; b=ZfmGKWk2lt3BBgqBhE2mMlaFOVILYnqaVSkVCwGs64JwGg8DNKM5pw9j2xkgy+wFi/ 2NseBQlIPC6w/5LMKPd11F3+QSTrI9lTa7iMi1GwqZqOgoDxfB6sG+3Q3yehvQtRPBEh 62BasqI0WmT/idT7hYOQqVfwga0an292CB1ARtP0S60TYrakX7YjwZCHbcllOBqzXew2 PjS82hHwQ/ck9O5RQS3ZVsAvaT+Myoru2Jdzn6z3R8dt5KB912J48jQ6WZxFI9JM0Vmb obUyb4HG121ypyrgrpZaVmNeG/pFYR0IrL3cLrk1BQGmDN7zUw0dX+SE1LprERbW5WSk 4u7A== 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 u11si234796ejr.234.2019.09.25.12.01.22; Wed, 25 Sep 2019 12:02:02 -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 S2501943AbfIWOhL (ORCPT + 99 others); Mon, 23 Sep 2019 10:37:11 -0400 Received: from foss.arm.com ([217.140.110.172]:43436 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2394205AbfIWOgo (ORCPT ); Mon, 23 Sep 2019 10:36:44 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 1586F15AB; Mon, 23 Sep 2019 07:36:44 -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 59A913F59C; Mon, 23 Sep 2019 07:36:43 -0700 (PDT) From: Valentin Schneider To: linux-kernel@vger.kernel.org Cc: Yoshinori Sato , uclinux-h8-devel@lists.sourceforge.jp Subject: [PATCH v2 4/9] h8300: entry: Remove unneeded need_resched() loop Date: Mon, 23 Sep 2019 15:36:15 +0100 Message-Id: <20190923143620.29334-5-valentin.schneider@arm.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190923143620.29334-1-valentin.schneider@arm.com> References: <20190923143620.29334-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.22.0