Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1429808ybn; Wed, 25 Sep 2019 18:21:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqxUb9Ml8FziVMASgZg2UHY6ZSL8GaZEjIi06gxqPPztvC8eRwiBZOviahdn5CVe9EEvSLeu X-Received: by 2002:a50:a5f8:: with SMTP id b53mr970952edc.39.1569460898246; Wed, 25 Sep 2019 18:21:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569460898; cv=none; d=google.com; s=arc-20160816; b=BZjDTCKuW7HZgwNRMFZtUrpPNVnfJRZ48DVRylrZD8I0CV2UCdwD/CeCverY73LDXH PeZur8seXFd9O5iC+ECLTwVrR0tQITHjx9XLXOG2alklCc5dz7ZX6AlQ2Pa12TbpVCEi XkkJZb5hMWbdv8JB7MG4kyNS1EeTo68266ad2oCVD2DlxX2qh+wmUL4XLPelHveNhMBE QFr8StsJRy1Q4pHV6nsSL2o2JA3MGO89iNzUVjwXyEZAet2s8LTm4cHhQN/VIACEcG9j 2t+cL4PISwswbeVc71pd4nYa4hKoiwqwbF2yv2xQbYAOONypwSQx88tw4SjPtrLiHa94 dOpQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject; bh=ABsNFXBbzoA8qU01C0gzSfuQfXOwopzcb+g2qipU6T0=; b=iCw2vGOKbmP9ETAdPqn31znulO3/ss1rq6ASdj/GmhNgu+j+rJJ36yS0zyhxQzBdug xXecrkGvH0ovgC00GuESXZwRL0TuVgfW6rSecfrcDgn+/FG2ObLNZ7a9y30lFtA+yKrp uWqv6yAGeNH5EzudJhoziFlfNBr2uBDOCA220vdjv0KoShMIpr32BqboX0fp34n5Jwqw h87gN8DHVmc1ecCnmAda5vxH/56/jyr6d9Aliqo+igJiVJu6hA3go9LVVqtkDjDV9aPn kjdXXXL7zts/Br1adpnNfbPlDnxlQplDcBeO2224qXOTPi79AESuiCrttb6+IxM2B1BM WuXw== 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 d24si417360ede.119.2019.09.25.18.21.15; Wed, 25 Sep 2019 18:21:38 -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 S2440728AbfIXKsl (ORCPT + 99 others); Tue, 24 Sep 2019 06:48:41 -0400 Received: from foss.arm.com ([217.140.110.172]:57354 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2438486AbfIXKsl (ORCPT ); Tue, 24 Sep 2019 06:48:41 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 96F10142F; Tue, 24 Sep 2019 03:48:40 -0700 (PDT) Received: from [10.0.2.15] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 12A363F67D; Tue, 24 Sep 2019 03:48:39 -0700 (PDT) Subject: Re: [PATCH v2 5/9] microblaze: entry: Remove unneeded need_resched() loop To: Michal Simek , linux-kernel@vger.kernel.org References: <20190923143620.29334-1-valentin.schneider@arm.com> <20190923143620.29334-6-valentin.schneider@arm.com> From: Valentin Schneider Message-ID: <7131ee8e-d632-a6e4-b974-e2ad2df3bbda@arm.com> Date: Tue, 24 Sep 2019 11:48:31 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24/09/2019 11:30, Michal Simek wrote: > On 23. 09. 19 16:36, 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: Michal Simek >> --- >> arch/microblaze/kernel/entry.S | 5 ----- >> 1 file changed, 5 deletions(-) >> >> diff --git a/arch/microblaze/kernel/entry.S b/arch/microblaze/kernel/entry.S >> index 4e1b567becd6..de7083bd1d24 100644 >> --- a/arch/microblaze/kernel/entry.S >> +++ b/arch/microblaze/kernel/entry.S >> @@ -738,14 +738,9 @@ no_intr_resched: >> andi r5, r5, _TIF_NEED_RESCHED; >> beqi r5, restore /* if zero jump over */ >> >> -preempt: >> /* interrupts are off that's why I am calling preempt_chedule_irq */ >> bralid r15, preempt_schedule_irq >> nop >> - lwi r11, CURRENT_TASK, TS_THREAD_INFO; /* get thread info */ >> - lwi r5, r11, TI_FLAGS; /* get flags in thread info */ >> - andi r5, r5, _TIF_NEED_RESCHED; >> - bnei r5, preempt /* if non zero jump to resched */ >> restore: >> #endif >> VM_OFF /* MS: turn off MMU */ >> > > Looks reasonable and also tested on HW. I expect you want me to take it > via microblaze tree that's why applied. > Yes, please. Thanks! > Thanks, > Michal >