Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1511909imc; Mon, 11 Mar 2019 15:51:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqx2tY7VyE0tSsAekSKSW13P8JsOgh5F/KSFAUwb6DqGdnyV/6chUb0D32LULKUPQhSSX78e X-Received: by 2002:a62:4793:: with SMTP id p19mr36186114pfi.76.1552344688284; Mon, 11 Mar 2019 15:51:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552344688; cv=none; d=google.com; s=arc-20160816; b=Y/OACj3Brto1CBaPq+EkIeVk7e+Pjsn+ceMrIFI5zHZgeBNG7iizm8gv8eRI/6UI2G 2IwVJZ7/cG8wxtD1ORw1fAMUj1aWB/Tyna9mrb0+Ju1icPHyiW+LNjl0TJyFCGb+RdGf KB5PtpChUyZ6DZ357QgQ/mUloeN8MBNcKFd0ZgOjs4HdO8Ux8Sngd+KC29/iz3i+Qsy0 nuCWRE6ax1x93AsmkOuqfkwv//QzCZ6PDu6ZLNt3CLMvZc/xAp7/JQHuhYNIdJdRZ+ou F48POWZhvrY75YOTDQQlN8FBW3qM1PYmmp40lxW+cw1W0nDASGgRk2T+8+QpPYAdO+hn fQFg== 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=qyyx5bQ2PMCQkGnhMYvlBVTO7WvyjbHfQl9a/e+N8Ig=; b=JfVr++n63Qn7+ViuvKOf4rlqb/qby9b2mZ2KR547HVa71i8SCufKokPIf2ljUNPVKi h4MIiLKqwYwMhJvWiR4asdul4P+Vf/aO1FS1gxsxq51kc9O5xE4221FDEDo7YAcoGovp 8KrA0d/jZ1lgG/YEVYXLoWP/s6CVLxtdyBJWNORv2SrrHcVBG1ZrbVjjgFo/tTU1iBCg iUMO+J8JRjjVlGvyGnq9lAE9vN3HfIQIcXfo+WxPtP1kU/u9vdBmY5bdyNVoLtsONoPm A+XBgOdncL+pVzxVhU+piI+09w/L+a9fbGFnZKJL6P/8YNvnymkzbBOnapLT84Lvq++1 qG2Q== 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 i3si6347968plt.120.2019.03.11.15.51.12; Mon, 11 Mar 2019 15:51: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 S1726857AbfCKWtF (ORCPT + 99 others); Mon, 11 Mar 2019 18:49:05 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:33912 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726578AbfCKWsL (ORCPT ); Mon, 11 Mar 2019 18:48:11 -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 3919D19BF; Mon, 11 Mar 2019 15:48:11 -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 672223F59C; Mon, 11 Mar 2019 15:48:10 -0700 (PDT) From: Valentin Schneider To: linux-kernel@vger.kernel.org Cc: Guo Ren Subject: [PATCH 03/14] csky: entry: Remove unneeded need_resched() loop Date: Mon, 11 Mar 2019 22:47:41 +0000 Message-Id: <20190311224752.8337-4-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: Guo Ren --- arch/csky/kernel/entry.S | 4 ---- 1 file changed, 4 deletions(-) diff --git a/arch/csky/kernel/entry.S b/arch/csky/kernel/entry.S index 5137ed9062bd..2d9e4776ba7a 100644 --- a/arch/csky/kernel/entry.S +++ b/arch/csky/kernel/entry.S @@ -307,11 +307,7 @@ ENTRY(csky_irq) ldw r8, (r9, TINFO_FLAGS) btsti r8, TIF_NEED_RESCHED bf 2f -1: jbsr preempt_schedule_irq /* irq en/disable is done inside */ - ldw r7, (r9, TINFO_FLAGS) /* get new tasks TI_FLAGS */ - btsti r7, TIF_NEED_RESCHED - bt 1b /* go again */ #endif 2: jmpi ret_from_exception -- 2.20.1