Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp393744yba; Wed, 24 Apr 2019 03:10:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqydF/s9vT/iqProFuRJsWHDzvXE0wX7NMX9vO69mPEF/zMr/JI1zKCYxIwfOAW1PkcDBVi9 X-Received: by 2002:a63:6d01:: with SMTP id i1mr15441955pgc.168.1556100641803; Wed, 24 Apr 2019 03:10:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556100641; cv=none; d=google.com; s=arc-20160816; b=BlgXlkLQ9sGlilOIWjIa89UwyRe98YlYllfovZxHJkh0VmW04eIXIkN6TjyzlrqkjC SAUblXsmmOpyDjEgnh69qAaWwmOjRMHk2ibZvNbF7iHfaUXd/39rDcWP+oe6g1Xg20EY AZpMdkkd1Nl+JEuyZQwPSOFp1TgpYAZZwx+mfr3JnnRonKEw7TRkS01ue92fX5rRfzSl zPmNotnYSbwj7MlEUzr+jBzcUqVRNmrFN5XP+nNQk4BDYbKmFXL5zsLOS5mTzym0Zj5l Ezk/+FvKKr0PlY2Llx9yxpX9259TZ6NBPTHlJu1Vhg4eEHI9fb1IdOQ8J/Qlrgkwcuxw WXsg== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Lgf5HoTsHrFGKIuVDTaWuBV3TYN/tmdm9uPDCDh5ZgM=; b=uoBmgx01vLDsDlMV/G8+lv5Tc0++j4iaQZT3BUoOXn/GIXJeMHhX/wjNlynQ3ekUGM 6u+JuuMccmfnfOnRRvVHzDFZiXhKUOZ3lF1BwyJWV/cLvpIzMRvVZ1EznAlJ9RrLbWXf WViPevqMrBlSODesnaXymsqqNsTaxrfXi7SJjUoP+H4s3ftnU2QnNQv1olixdVdXtK8O 90COeSlkoCwrQRka8f/N1RuwwJinMe5cnqManBaNueXmOO5xmfm1G3Fi4d2j6NL0R+O8 wLoYjxr1X4c6DPsj0ie2R3UfiHVi4PKqB1g26ehAiZSWhwNhF/weC+RV4kj7cOlzGLkb y5Dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Yj7p1f7E; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v21si18671067pfe.119.2019.04.24.03.10.26; Wed, 24 Apr 2019 03:10:41 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Yj7p1f7E; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730093AbfDXHTX (ORCPT + 99 others); Wed, 24 Apr 2019 03:19:23 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:42571 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728927AbfDXHTW (ORCPT ); Wed, 24 Apr 2019 03:19:22 -0400 Received: by mail-ed1-f68.google.com with SMTP id u23so14616431eds.9 for ; Wed, 24 Apr 2019 00:19:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=Lgf5HoTsHrFGKIuVDTaWuBV3TYN/tmdm9uPDCDh5ZgM=; b=Yj7p1f7EY1WDTR8JbAAkWxXZ4YlaIiwgza8hYzOwMnHhJKC4C7MuOpamuAaaAFgsyl jS02U1cKwoOk0eZBWLN0PvX79+IYY5w0i9eLbJYp8bwmiRO0vIOslvoCUJWrK9Ydn48j 4js1CEDPeVwtgWMQ8/doO+tRqZe/gxfegk8F2UfRX4JR17FpN+NXvoo/ncNYZfQok58O 5VAEquWio+0ZCXoFmapXHZ7AMRXWoTdpy/KY1UtCxSb2SUvOaMmwFM/rNOtXXfwNFvUi 32DsEolE24zgh6cNa1nQFDHVjMv5x7+iWUW7BiYRUiO4gixKxF9rywRfVTei1/IfMIkD Kp3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=Lgf5HoTsHrFGKIuVDTaWuBV3TYN/tmdm9uPDCDh5ZgM=; b=Fm64Q6dPtXx9MLSoIRGN0BoZUgLiDhGyKcH7Mt6G4rB367gyyM1XrpBuYSjxBqr9/H OTbE6lmm4d6ItcODHz/Op64rYTLf1li1rOWz7qXGa6rSQvsxRIaFeT0sjLshphLlLT7w e03ZScMsTQzUzAEdZI+RGEfPXskytQMmLnski/Qh4gOprYRSW/OuqKfC9qgQpc3yilRx m4gTiS8pbztbEkjkuc9ebmA6fJ3Tw2Rqe6Jq1uWCHnL9+lP5xrIWxfgg9GPnwMESGzz7 kHEXyPb0x078/ApWva3QxJG7wWpQUvQ0q3t/LgZvtJBZrxU0os431tqu99J6rOWZ13fb zKow== X-Gm-Message-State: APjAAAXsjFFXHpo6d2qUSQNZxuaPsxh0G2cG71UU+hBIUKL1WJs8Z4w/ y2VQ/SWNoH3nD5+zRArDv1YmuMnHupfhNR6kaDS/WFbIjsQ= X-Received: by 2002:a50:be01:: with SMTP id a1mr19473760edi.12.1556090361056; Wed, 24 Apr 2019 00:19:21 -0700 (PDT) MIME-Version: 1.0 References: <20190311224752.8337-1-valentin.schneider@arm.com> <20190311224752.8337-8-valentin.schneider@arm.com> In-Reply-To: <20190311224752.8337-8-valentin.schneider@arm.com> From: Greentime Hu Date: Wed, 24 Apr 2019 15:18:44 +0800 Message-ID: Subject: Re: [PATCH 07/14] nds32: ex-exit: Remove unneeded need_resched() loop To: Valentin Schneider Cc: Linux Kernel Mailing List , Vincent Chen Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Valentin, Valentin Schneider =E6=96=BC 2019=E5=B9=B43=E6= =9C=8812=E6=97=A5 =E9=80=B1=E4=BA=8C =E4=B8=8A=E5=8D=886:48=E5=AF=AB=E9=81= =93=EF=BC=9A > > 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 > > /* Thank you. :) Acked-by: Greentime Hu