Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1510631imc; Mon, 11 Mar 2019 15:48:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqww+FEi/uEBw9iwIQf4gnEk7QccgeBMG4kF1FbwEEL5CsSwSkQlEotPrl4zbV579qkCuliZ X-Received: by 2002:a17:902:ab82:: with SMTP id f2mr2545612plr.93.1552344538029; Mon, 11 Mar 2019 15:48:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552344538; cv=none; d=google.com; s=arc-20160816; b=Wk4JYEks+5oQRLmUNpveuxYaBg6AexkCQ8eZ5WNmauM9NJNe8FgmHihIWlZcdP41Dk cvEkR2SWGXkgs8F3fVRFdNM00M89Jkte47aFv/YpGGy0C/NcS7zd0JabHGuZiQWZKn+y 9haxEV9gXlcJ2aGLiL7trKjkKsnjNScb/1iVVfMZJJHvas7SQgCEbpHyIBwAFz5CcF5e X/HhVwmKLzPwH1uNmc3BDa3J5fE1UTuzRHcg7jX5hPTZWBdrokF4cFu70DVxfw1g9XJx dhbSpLS9CjauH5Fcr2fTlAuyaCK6WbGK6BwsRZH6Wep8SPfSXYcokb7GqbiK32t1Q2/q TObg== 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=585sGKzozxCjAB+YMivDlohUal+pq/EJLEAUmxVvJeE=; b=CdwUgoGlVU/+nWp/sAiLdR9LrOdXdtj16Y7lsva2hSXgZ4azrY0mUv9FI8Qbz9QrZn UCUNnA3pbbwcsuaywMdnRLkBZdqXeOGni2T/Kt18q3/ALt3OgGPndpPiMT1U+EcEGhp4 v6cW+qbkPil1G7+T4UoFi/1iTvEm0H7jW1VUZ84rUeuv8brj9dvxqXDaSmTQUpenhipO goX5WQJlztGZtDFpP55xWUXDXMqTbBC/aw5445my1cp4NOxE1q+WThRAJOE3i5F9wg0i gd0MRIhIzkvncw62aT2XhrKgsfUZhrM226QCXzUkujwdtNGoaKPqVVMYfuHEKyleOlYh x+gQ== 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 n79si6162467pfh.202.2019.03.11.15.48.42; Mon, 11 Mar 2019 15:48:58 -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 S1726585AbfCKWsL (ORCPT + 99 others); Mon, 11 Mar 2019 18:48:11 -0400 Received: from foss.arm.com ([217.140.101.70]:33900 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726556AbfCKWsK (ORCPT ); Mon, 11 Mar 2019 18:48:10 -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 2A3151993; Mon, 11 Mar 2019 15:48:10 -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 116413F59C; Mon, 11 Mar 2019 15:48:08 -0700 (PDT) From: Valentin Schneider To: linux-kernel@vger.kernel.org Cc: Mark Salter , Aurelien Jacquiot , linux-c6x-dev@linux-c6x.org Subject: [PATCH 02/14] c6x: entry: Remove unneeded need_resched() loop Date: Mon, 11 Mar 2019 22:47:40 +0000 Message-Id: <20190311224752.8337-3-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: Mark Salter Cc: Aurelien Jacquiot Cc: linux-c6x-dev@linux-c6x.org --- arch/c6x/kernel/entry.S | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/c6x/kernel/entry.S b/arch/c6x/kernel/entry.S index 2721c90b0121..17926e942edb 100644 --- a/arch/c6x/kernel/entry.S +++ b/arch/c6x/kernel/entry.S @@ -567,7 +567,6 @@ resume_kernel: NOP 4 [A1] BNOP .S2 restore_all,5 -preempt_schedule: GET_THREAD_INFO A2 LDW .D1T1 *+A2(THREAD_INFO_FLAGS),A1 #ifdef CONFIG_C6X_BIG_KERNEL @@ -584,7 +583,7 @@ preempt_schedule: #else B .S2 preempt_schedule_irq #endif - ADDKPC .S2 preempt_schedule,B3,4 + ADDKPC .S2 restore_all,B3,4 #endif /* CONFIG_PREEMPT */ ENTRY(enable_exception) -- 2.20.1