Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp3163660imc; Wed, 13 Mar 2019 10:23:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqy52hzfrENgXlN1nKpR/4OEwMGZbn0RVey03vDJKIiMvhZwLXpa5P0WbRlSbcBCOPP9fLa0 X-Received: by 2002:a63:d442:: with SMTP id i2mr40798721pgj.246.1552497798985; Wed, 13 Mar 2019 10:23:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552497798; cv=none; d=google.com; s=arc-20160816; b=AtklMs/yuJPX2OWd2ln/FljZYB3H01exRncicRIQsZlrQMZWA90Fxh+bQ0lLjtKJS0 AM003ZAwD3g0+ReJuU1iLQn04Y/e7+F3CMflBfgD31quzD/0PSz2L2xYEHPGiyketfgT zOeK9OhJvfY80UdEZg7Fg3UPxRthI9D+QoH8Pn/qp4TuTuDfXpX+Vel9tIKRvk5lT/80 aSALaU9Qtonvv4It4QwpWRgGdkgJbZqxmt+O5NRKBKuT1lfzF7E1H1lx2G7+lXsW8WPV fr+Mb5Xn0LeKE8AJ6vL3LRyZBp+5H+o+5PN+r/vYJyxlQITaKxb3exlEkIEdOnKZPQeA PXoQ== 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 :user-agent:organization:references:in-reply-to:date:cc:to:from :subject:message-id; bh=eI8Ritc32saL1Z/IpJRdsmpNxkQPRfGw1g5iavSIbbo=; b=J+BGswTzf0Ieum3vjEspfvl8JgwGfcUcsVv2q2uXyALcJfdvY4hWVGOPlTNFc7qPnw xDOeLOAiOxcTxgCk1tE1SY/Jwi2f97Aqa6dV9GpN0NPKO20uVoUzpWuorBJjSijf58sj bKKxAVYHKu824gpVaFyYs3pdK2nfVzij6mEGt13EHGSGWXqGTOUYn9rAzuISn0PjKuB6 q+aW7iCK79Kc4RCVZ+dOPdmsdcU7WrnayyI1qk84DjMQMxrhmpxy/AKAKWT8TlCS1D9P cCFhYnlTlbN7g/aGvMVy+YP1Hm8eunx6I4aNM03ibTuDQtNtunikbusntvp4qhkTLKRH le0A== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f19si5940716pgj.563.2019.03.13.10.23.02; Wed, 13 Mar 2019 10:23:18 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726736AbfCMRWH (ORCPT + 99 others); Wed, 13 Mar 2019 13:22:07 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58614 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725895AbfCMRWH (ORCPT ); Wed, 13 Mar 2019 13:22:07 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E0FF93007C36; Wed, 13 Mar 2019 17:22:06 +0000 (UTC) Received: from ovpn-120-157.rdu2.redhat.com (ovpn-120-157.rdu2.redhat.com [10.10.120.157]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2EE2D5DD84; Wed, 13 Mar 2019 17:22:04 +0000 (UTC) Message-ID: Subject: Re: [PATCH 02/14] c6x: entry: Remove unneeded need_resched() loop From: Mark Salter To: Valentin Schneider , linux-kernel@vger.kernel.org Cc: Aurelien Jacquiot , linux-c6x-dev@linux-c6x.org Date: Wed, 13 Mar 2019 13:21:58 -0400 In-Reply-To: <20190311224752.8337-3-valentin.schneider@arm.com> References: <20190311224752.8337-1-valentin.schneider@arm.com> <20190311224752.8337-3-valentin.schneider@arm.com> Organization: Red Hat, Inc Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5 (3.30.5-1.fc29) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.40]); Wed, 13 Mar 2019 17:22:07 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2019-03-11 at 22:47 +0000, Valentin Schneider wrote: > 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) Acked-by: Mark Salter