Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp1871796ybg; Thu, 30 Jul 2020 05:04:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxly2eKQHW0r4SEPC3AluOwhyUi2iufv3tlEpBw/fQ+67lN7veJMtfa8fsZJRNhHSTkSj4E X-Received: by 2002:aa7:c74f:: with SMTP id c15mr2332464eds.331.1596110673730; Thu, 30 Jul 2020 05:04:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596110673; cv=none; d=google.com; s=arc-20160816; b=wC5ABQqwMxE9cH71j8mO+HxrCVTGIbc7XC4cxBYQuO/ihe2SNvzZHwletMA6m4l1Jf Bj/u2hMIyAcuol68h5M+atN6QM4nwRC6O6GTkwn50jjQQp4dqI+nrXcz7eExgvJ5HJlD ER716Do5CbwdvBSd9Pq4U1+PZomMjgGSZVT0Bo9+y08lD+cpDgDiljO0ZyEw1Cks8aaI 7RQyPfFTl+BsHP9NWCsHLKCm4vtDTC8XsEUiRm4eUK9Hfkqlkv+GL1Cf/h2yeO5gJ0pH /HUIQDp0+cty5pGbK3kHCk1VgznK2r2xGQayV+lO3SMQsQp2hJsWoqgqTkGimeS/Wqg4 PnZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=IxcMgoLIlAnfeO1GMnykouoxBGSrSuqm7mrGj7MjHgE=; b=oO/aSPNs8euA+twJMmjhwRkttwGAdN0zMUjBcsdK9A7RT+t9HU7kvjpuZHl+AENnWc jC3J64+MpJZrsLaJq3922v1BWBFrVdxPs2gzHdqpzmDNN/FJb43YLcqkcytKKltVIdoA H142nZ1MGvTl8d1S4rIG/Ll8N7IRGol5P2evmPOd3TEp2uxEzhcIobkAgW8IRGVyf7dl 7WIm5vqMCoCx8zfOa//g6hPJHNAlktLujsEx1+PnevvB6SXNSZcNa8pfP52wXVFebMRO pYyeZK+5rej4IjU9yrkbIR6IIJ4CeIxHLtv8bjKep88mWO2XBqNa9giHuC9Vstv9Qv+1 ztxw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a17si747009ejt.20.2020.07.30.05.04.11; Thu, 30 Jul 2020 05:04:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727956AbgG3MD7 (ORCPT + 99 others); Thu, 30 Jul 2020 08:03:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:56376 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726581AbgG3MD6 (ORCPT ); Thu, 30 Jul 2020 08:03:58 -0400 Received: from gaia (unknown [95.146.230.158]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9E80B20829; Thu, 30 Jul 2020 12:03:52 +0000 (UTC) Date: Thu, 30 Jul 2020 13:03:50 +0100 From: Catalin Marinas To: Mike Rapoport Cc: Andrew Morton , Andy Lutomirski , Benjamin Herrenschmidt , Borislav Petkov , Christoph Hellwig , Dave Hansen , Ingo Molnar , Marek Szyprowski , Max Filippov , Michael Ellerman , Michal Simek , Mike Rapoport , Palmer Dabbelt , Paul Mackerras , Paul Walmsley , Peter Zijlstra , Russell King , Stafford Horne , Thomas Gleixner , Will Deacon , Yoshinori Sato , clang-built-linux@googlegroups.com, iommu@lists.linux-foundation.org, linux-arm-kernel@lists.infradead.org, linux-c6x-dev@linux-c6x.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-mm@kvack.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, linux-xtensa@linux-xtensa.org, linuxppc-dev@lists.ozlabs.org, openrisc@lists.librecores.org, sparclinux@vger.kernel.org, uclinux-h8-devel@lists.sourceforge.jp, x86@kernel.org Subject: Re: [PATCH 04/15] arm64: numa: simplify dummy_numa_init() Message-ID: <20200730120349.GL25149@gaia> References: <20200728051153.1590-1-rppt@kernel.org> <20200728051153.1590-5-rppt@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200728051153.1590-5-rppt@kernel.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 28, 2020 at 08:11:42AM +0300, Mike Rapoport wrote: > From: Mike Rapoport > > dummy_numa_init() loops over memblock.memory and passes nid=0 to > numa_add_memblk() which essentially wraps memblock_set_node(). However, > memblock_set_node() can cope with entire memory span itself, so the loop > over memblock.memory regions is redundant. > > Replace the loop with a single call to memblock_set_node() to the entire > memory. > > Signed-off-by: Mike Rapoport Acked-by: Catalin Marinas