Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1511317imc; Mon, 11 Mar 2019 15:50:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqzRCTJXRLIiO8FmP2xuYQhZawMzUb2ur7zJZcZxC5fw0C2OGgASLL2LWP52eQI2HfbwH4KO X-Received: by 2002:a17:902:1e6:: with SMTP id b93mr36018549plb.325.1552344617339; Mon, 11 Mar 2019 15:50:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552344617; cv=none; d=google.com; s=arc-20160816; b=XMPNgwiWcTRG/3GndBTSvi+Bs3k9aFw6/pzT0XKPCQeU+LJlEWF5r0kL69DT8NZaPW HNnNMavCo/93Ycwk+IGFlvSrMH9to2W4PhvFq5hYNEecd21xeNnexJwA3Nxnugq3mqkZ ev8IxhiPAf1fcHMHEWPJJ4x5KunXXH25SIIycjWDWzw75Kcz9yjvud1MHB+j+7WfdFmj CyQDMJ+/2303Klm5cCwd5Phc77/VswJUV54eXQSVbRxQEYjoAXjDw2p/9A5hF0kmNDcf ikuHqOQi8Z+en+bZFC3Z+xUpNm6nCrjdTG/THophX8AAiuImaQ65llFh6YQXoLunGTYG vNFw== 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=zU9YmhJAeJ6oGBSOX3/j3R6lI+Me1BqOr8AAjdonFbc=; b=WgQKy3FX5FmTHvhHmcUTbhGRNp8d1epXyL4BZwuIurqBSbw6tcYztstQJm0r5EUvq6 0ZK9MuKXE0nl+kWejvVrmyELIBOfRpr1fanb7ibFZMrDtj3i6XTEpg6a7vRC2G6tO6dV yG4+0NG0lzcdRiIiE5lwE2UEl700YSyFSQ/yxiO2VEVp2BwOWlIpoKB5IcSe5oTQwuep Ah7M1BKliYGPZP2y3LzGYztZCKyGWt1PBqWkCcCKVO9+fJ5ba2SUAm6GMvRpdZoGbmhj 6cjWuW/bptmsc9EKnXeUpH+73SYoGZZHTW/j+Xi5+8kJ8svNQIhPBuHPRIoN1XptlOu1 AwAQ== 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 n81si6129656pfh.272.2019.03.11.15.50.02; Mon, 11 Mar 2019 15:50:17 -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 S1726676AbfCKWsS (ORCPT + 99 others); Mon, 11 Mar 2019 18:48:18 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:33940 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726556AbfCKWsQ (ORCPT ); Mon, 11 Mar 2019 18:48:16 -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 3134E1993; Mon, 11 Mar 2019 15:48:16 -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 3C51A3F59C; Mon, 11 Mar 2019 15:48:15 -0700 (PDT) From: Valentin Schneider To: linux-kernel@vger.kernel.org Cc: Greentime Hu , Vincent Chen Subject: [PATCH 07/14] nds32: ex-exit: Remove unneeded need_resched() loop Date: Mon, 11 Mar 2019 22:47:45 +0000 Message-Id: <20190311224752.8337-8-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: Greentime Hu Cc: Vincent Chen --- arch/nds32/kernel/ex-exit.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/nds32/kernel/ex-exit.S b/arch/nds32/kernel/ex-exit.S index 97ba15cd4180..1df02a793364 100644 --- a/arch/nds32/kernel/ex-exit.S +++ b/arch/nds32/kernel/ex-exit.S @@ -163,7 +163,7 @@ resume_kernel: gie_disable lwi $t0, [tsk+#TSK_TI_PREEMPT] bnez $t0, no_work_pending -need_resched: + lwi $t0, [tsk+#TSK_TI_FLAGS] andi $p1, $t0, #_TIF_NEED_RESCHED beqz $p1, no_work_pending @@ -173,7 +173,7 @@ need_resched: beqz $t0, no_work_pending jal preempt_schedule_irq - b need_resched + b no_work_pending #endif /* -- 2.20.1