Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2307835yba; Fri, 10 May 2019 09:20:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqyz0zGbGW4rVbVO6jPWhdt6OCubA8oFFgo2StmUDhvatfugypjOG3RvWdWCjxL97osXiXbc X-Received: by 2002:a17:902:d917:: with SMTP id c23mr13742955plz.14.1557505231288; Fri, 10 May 2019 09:20:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557505231; cv=none; d=google.com; s=arc-20160816; b=RXeXW7ljgAFnt0Nl2xRKMOPpwk/B0AzaocXxqy6kRzF5MtqxqnUEpAY7JXGcqH/DEo fot8YTgoC2oKl+oUxwOFMVz5hs7RvVrg3en/p3jSVJd7mMfGGh3RjUAbfg8mfAR5nRqj zIZ0GFHxqQVd1XcEsCYYynvUFX99ur0Oh93gbGhm1N2v198ilf6osLmBYCuG8kuSzhzI +7hwqKiDHk+gtaxGL+AgJhiq1TRm0ToEAg/LR+DtG/gtR3I5VMk+K2bqzYBdrVXsN94p N2vjEka8F89VopBv1qub7y0cw/JyvSRa9zlPY4c/0O07aGCij1TKjPe9h6N6W4abN47L UnMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=gqBG1Msfs3YviqzL3wDt+ru5oi+F9UImJsS1kb7yNuA=; b=Pdn5icWKEiFynIxtyEnxnMgqLaAv3oBnCVXpcFf1JkF3aad8DIqBT8kuDIA25Nn6VS G0Jv0Z5oAX/qO9KHm2AwItE0Zxu9N01SoS8WpyzEak/EoMo863PEgvecCmbburtZ7Fht 7FIuxPSNAtytk2MoQWf5d70BDf3zGJQYsAPYrPBJyg+jY89+NInkyb5VEosIJ1WceSjC yIbzEm9nOeMU8cXsgU6JZqhajozygtbxyKIDG+SctV6+kw6J7ybiRPDbiduPLG/sR+Ty 703OeCna4C7FBWqwjs6UfiikdDfsp1o8kkECXzsfb45Xnntp8tWx2SGHFiUf+ILmOb07 OPKQ== 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 cn19si8945720plb.400.2019.05.10.09.20.14; Fri, 10 May 2019 09:20:31 -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 S1727660AbfEJQQ6 (ORCPT + 99 others); Fri, 10 May 2019 12:16:58 -0400 Received: from eddie.linux-mips.org ([148.251.95.138]:37718 "EHLO cvs.linux-mips.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727271AbfEJQQ6 (ORCPT ); Fri, 10 May 2019 12:16:58 -0400 Received: (from localhost user: 'macro', uid#1010) by eddie.linux-mips.org with ESMTP id S23994582AbfEJQQ4RvYN4 (ORCPT + 1 other); Fri, 10 May 2019 18:16:56 +0200 Date: Fri, 10 May 2019 17:16:56 +0100 (BST) From: "Maciej W. Rozycki" To: Paul Burton cc: Valentin Schneider , "linux-kernel@vger.kernel.org" , Ralf Baechle , James Hogan , "linux-mips@vger.kernel.org" Subject: Re: [PATCH 06/14] MIPS: entry: Remove unneeded need_resched() loop In-Reply-To: <20190314181306.k6vxmaomyqalhi65@pburton-laptop> Message-ID: References: <20190311224752.8337-1-valentin.schneider@arm.com> <20190311224752.8337-7-valentin.schneider@arm.com> <20190314181306.k6vxmaomyqalhi65@pburton-laptop> User-Agent: Alpine 2.21 (LFD 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 14 Mar 2019, Paul Burton wrote: > > @@ -66,7 +65,7 @@ need_resched: > > andi t0, 1 > > beqz t0, restore_all > > jal preempt_schedule_irq > > - b need_resched > > + j restore_all > > One nit - why change from branch to jump? It's not a big deal, but I'd > prefer we stick with the branch ("b") instruction for a few reasons: > > - restore_all is nearby so there's no issue with it being out of range > of a branch in any variation of the MIPS ISA. FYI, if it does go out of range for whatever reason, then for non-PIC code GAS will relax it to a jump anyway (with a relocation attached); for the regular MIPS ISA that is, where it has been doing that since forever (I meant to implement this for the microMIPS ISA too, but IIRC there was a complication there, probably coming from the existing more complex branch relaxation code and/or slightly different use of relocations, and then it fell through the cracks). Maciej