Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp2321367imc; Tue, 12 Mar 2019 11:19:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqylK3QXaOOUVGDxLe4mKkBtzF4EzKAwfZEFQhClGiFU1v5nfWdlRAXMJp/IjS9ckRykClmw X-Received: by 2002:a65:5281:: with SMTP id y1mr36996001pgp.59.1552414777287; Tue, 12 Mar 2019 11:19:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552414777; cv=none; d=google.com; s=arc-20160816; b=LapggTFnZhfwOgBe8aqo9E8VkoMUcop3Xq0R1mWhsxjUvpmBd+98oHVPtxfMC6CZ3a qM+RWIGgWLJBARx7FiDsYKIq+Y3/XA31nr/+fgqft8ludX/PxiWmAk19g0JeRf8YxWA8 RaMN/Nzm7AziFAg5krRJAmsOy/O4NO93Qg94BgDtWBZON3aDQF031VuLhJEDxwYHe7Sq iXnUbfbyA6Ucyi3q8Y7TGZ28BXevIdMyrpNfgwrlWYAO2COiNFov44F/oAl76ce5WADV SSO1yacLKYC/qz15Mdok6O4ojB7vN0QQv1k2mz+awtzLSYdO4x5HwDNvKnPTobBZFn2z FauQ== 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:cc:to:subject; bh=YjOhKzbMbHBheI7KkBYqahtgBHIgQnR+V7UhmA7Ip3U=; b=IcPJw1wfCzilQ+F0TivJ/Vc8NVz2VdhU9CNO97SdM3P3TSB4TGh4hQnKOLJlw5DG2a UiYv2UC591uIATc/yC9BlPaLTJZdYOxZZyGXwhCQtN3ZB8oEGFlrcYQhmCFQ/kpdMuHg gtTFwu53ZKah1TZp0CMCpURz2kD215bL5SgRrX6mvdOCoVIfm2lob+yaxD+K4jzy43TX oMfaOMnaKM1+DzmegvmujrH1aAhqawl4ktHBPu758gUDhn1uFFoZHbm+gQWjiizffDV4 n4zLkoWEt/iugTa5o0QvRoyzNsqWJ3+/orgKiGBEeuDTpngqxiLExGVpVbfIc0ReypgL dVgg== 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 p186si8534821pfp.85.2019.03.12.11.19.20; Tue, 12 Mar 2019 11:19:37 -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 S1727092AbfCLSTD (ORCPT + 99 others); Tue, 12 Mar 2019 14:19:03 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:47972 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726360AbfCLSTC (ORCPT ); Tue, 12 Mar 2019 14:19:02 -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 189C8A78; Tue, 12 Mar 2019 11:19:00 -0700 (PDT) Received: from [10.1.194.37] (e113632-lin.cambridge.arm.com [10.1.194.37]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id F195A3F59C; Tue, 12 Mar 2019 11:18:56 -0700 (PDT) Subject: Re: [PATCH 00/14] entry: preempt_schedule_irq() callers scrub To: Vineet Gupta , linux-kernel@vger.kernel.org Cc: Julien Thierry , Ingo Molnar , Peter Zijlstra , Thomas Gleixner , linux-xtensa@linux-xtensa.org, x86@kernel.org, sparclinux@vger.kernel.org, linux-sh@vger.kernel.org, linux-riscv@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-mips@vger.kernel.org, uclinux-h8-devel@lists.sourceforge.jp, linux-c6x-dev@linux-c6x.org, linux-ia64@vger.kernel.org, linux-s390@vger.kernel.org, linux-snps-arc@lists.infradead.org, linux-m68k@lists.linux-m68k.org, nios2-dev@lists.rocketboards.org References: <20190311224752.8337-1-valentin.schneider@arm.com> From: Valentin Schneider Message-ID: Date: Tue, 12 Mar 2019 18:18:55 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.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 12/03/2019 18:03, Vineet Gupta wrote: [...] >> Regarding that loop, archs seem to fall in 3 categories: >> A) Those that don't have the loop > > Please clarify that this is the right thing to do (since core code already has the > loop) hence no fixing is required for this "category" > Right, those don't need any change. I had a brief look at them to double check they had the proper need_resched() gate before calling preempt_schedule_irq() (with no loop) and they all seem fine. Also... >> B) Those that have a small need_resched() loop around the >> preempt_schedule_irq() callsite >> C) Those that branch to some more generic code further up the entry code >> and eventually branch back to preempt_schedule_irq() >> >> arc, m68k, nios2 fall in A) > I forgot to include parisc in here. [...]