Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1510886imc; Mon, 11 Mar 2019 15:49:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqz9A0xRmmhUHNHSw+KGJQ9JSDOzuHom8Lb0Dtsc62HlOeU4RNRV8rAUp9lgzPk/9C2DjBNV X-Received: by 2002:a62:4586:: with SMTP id n6mr35645009pfi.43.1552344563830; Mon, 11 Mar 2019 15:49:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552344563; cv=none; d=google.com; s=arc-20160816; b=UVOPB0IAnO4ThEo6tKv4FuVM4DbL2f4lrPe7VuHRgLYjw2TPFS0e2CDnErXtXwyH1t DfWF0KF71EH2qDJsv+U5szc9Cxm0wn5c0KTXpKjnaT0OYsDq5p5J2nTNorAMBmgV2wRq NQzfFAZXdWsHCYUztOpx4PA9IFj6FjmkrwIPFkhosajeWRZNarcBuOexczpGD7n+3e+6 quxat5a1lqV3zNSrvvZ+0mMaw3Wm7yN5DCYlFkBRnFWtEi3mPW/naikbypkm74AMYwst Wh3E7DFjwNREFqaeqZGtvQ56Om3qZsCvVOqeil7r4ILvDiq8b7AfUvVSIx6Royv2Zer1 rjNA== 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=ctn3wkNlnLhm+TRRR/IqwrXe88sut15MsHcM5adO1Lg=; b=dBEjRk06Q4c+DtxzdrPIbAsnXghVyP756gZClqXpMonyoyAw7TwAgFRDIBovR5doMZ bTdcD5IpremHgXawmtB7gym1n7bwUrZzgG/NGYO+WcvgabRaOR1lgPWbl+lKOnYI8ygY EgRxSw8K8+aLujzZzmOgLYx7BxEmWt9x2A2PWE3puLgIbZzW2xVlPoQ3gh5pzzg077/n z/JGtUxNhOsTQNJccz59P8VXrEwQnEyZ6hPzBH+qdgfrm44MAVfq16bD7AVZNYlS0LET DkKZm83HA+ZsBxzjQh0E3MuYS2XpwqRqr9fopViCt5Uwz2P3Vp0twiXqbYefvTIbMX1D nyxQ== 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 r27si6024096pgl.316.2019.03.11.15.49.08; Mon, 11 Mar 2019 15:49:23 -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 S1726766AbfCKWs0 (ORCPT + 99 others); Mon, 11 Mar 2019 18:48:26 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:33978 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726719AbfCKWsW (ORCPT ); Mon, 11 Mar 2019 18:48:22 -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 B551A1AC1; Mon, 11 Mar 2019 15:48:21 -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 9C9E23F59C; Mon, 11 Mar 2019 15:48:20 -0700 (PDT) From: Valentin Schneider To: linux-kernel@vger.kernel.org Cc: Yoshinori Sato , Rich Felker , linux-sh@vger.kernel.org Subject: [PATCH 11/14] sh64: entry: Remove unneeded need_resched() loop Date: Mon, 11 Mar 2019 22:47:49 +0000 Message-Id: <20190311224752.8337-12-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/cpu/sh5/entry.S | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/arch/sh/kernel/cpu/sh5/entry.S b/arch/sh/kernel/cpu/sh5/entry.S index de68ffdfffbf..40e6d9a7a6a2 100644 --- a/arch/sh/kernel/cpu/sh5/entry.S +++ b/arch/sh/kernel/cpu/sh5/entry.S @@ -897,7 +897,6 @@ resume_kernel: ld.l r6, TI_PRE_COUNT, r7 beq/u r7, ZERO, tr0 -need_resched: ld.l r6, TI_FLAGS, r7 movi (1 << TIF_NEED_RESCHED), r8 and r8, r7, r8 @@ -911,9 +910,7 @@ need_resched: ori r7, 1, r7 ptabs r7, tr1 blink tr1, LINK - - pta need_resched, tr1 - blink tr1, ZERO + blink tr0, ZERO #endif .global ret_from_syscall -- 2.20.1