Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1510776imc; Mon, 11 Mar 2019 15:49:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqykPnCoy+UNqDfSWTbg0IyCQmyBH2BoGLQuf6XZ8VsVJGh80dyGQ6bopw5QyL787XjKwqeN X-Received: by 2002:a17:902:aa90:: with SMTP id d16mr35106987plr.250.1552344554358; Mon, 11 Mar 2019 15:49:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552344554; cv=none; d=google.com; s=arc-20160816; b=xyjUz84Q8iuCtUUbQLEE4oIksAUbEnYYe7Bt/FZK86rCQolnpWPa1jvub8tovS1Bpx 93XKi4H1H3OGxnH7JvNsuuDI+TdeBESVeJNtEu7CENvq3TohLlcTGeR2Us4rEju6WX5/ Zmon3Xoglf81I7IWafU1iE+blvgNIXGYLf9Fxi79cLVDmw4xIKUQPBKODZIu5kvEVnVD 01td2Wo8QRA7q9SoJfUbILW9moD0HBAKBPJaRNsRBVxc0/gC35b45rYG7lU8bY3tGY1L 1qki4Ar6sw8lbDex0AljoeG5jm8Nvo8HCqHwgxl8GqK0NXqW2F7j0KYKfXkTf0NQ79ZY 3ZZA== 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=Sk/zE0nOwH2iqWtTEeCu8HlAj40mN7+zoWHkeEXb9nQ=; b=ZR997g1jlbhuJjLPKQ3hTuxF3vp0pMpOlhu5PXJWIzHxDKLdKzxkTX6dAgJT3XzlR1 8ffGG/jufz+nPCCpK6CAcjXYbTiMSdgqbzjtGAnAM1n66zNhLKGZblaBHznWCa4b8AiC 7yYryRPfYJaO1eCZQ9hHDIoOtz5gW3i4U3D0qLp0+YXo/iajS7/YiiL02h/oB7wesZ6V XzVWx1j+HUQ4A42v5OcoV+QoZC8snWitjzGdJa9w8U9FbP6WY3HBqPDkD2DrrpzMLveb uRwa0pTLlC+Mi3czdGjXFGiDP6fwqIMGTUOLjsL3PFij43Cova/3Sx003U8cEESccmqY VjIg== 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 t11si6330148plq.264.2019.03.11.15.48.58; Mon, 11 Mar 2019 15:49:14 -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 S1726752AbfCKWsY (ORCPT + 99 others); Mon, 11 Mar 2019 18:48:24 -0400 Received: from foss.arm.com ([217.140.101.70]:33972 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726699AbfCKWsU (ORCPT ); Mon, 11 Mar 2019 18:48:20 -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 5F2B51A25; Mon, 11 Mar 2019 15:48:20 -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 466AA3F59C; Mon, 11 Mar 2019 15:48:19 -0700 (PDT) From: Valentin Schneider To: linux-kernel@vger.kernel.org Cc: Yoshinori Sato , Rich Felker , linux-sh@vger.kernel.org Subject: [PATCH 10/14] sh: entry: Remove unneeded need_resched() loop Date: Mon, 11 Mar 2019 22:47:48 +0000 Message-Id: <20190311224752.8337-11-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: Rich Felker Cc: linux-sh@vger.kernel.org --- arch/sh/kernel/entry-common.S | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/sh/kernel/entry-common.S b/arch/sh/kernel/entry-common.S index d31f66e82ce5..65a105de52a0 100644 --- a/arch/sh/kernel/entry-common.S +++ b/arch/sh/kernel/entry-common.S @@ -93,7 +93,7 @@ ENTRY(resume_kernel) mov.l @(TI_PRE_COUNT,r8), r0 ! current_thread_info->preempt_count tst r0, r0 bf noresched -need_resched: + mov.l @(TI_FLAGS,r8), r0 ! current_thread_info->flags tst #_TIF_NEED_RESCHED, r0 ! need_resched set? bt noresched @@ -107,8 +107,6 @@ need_resched: mov.l 1f, r0 jsr @r0 ! call preempt_schedule_irq nop - bra need_resched - nop noresched: bra __restore_all -- 2.20.1