From patchwork Wed Jan 9 20:20:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Logan Gunthorpe X-Patchwork-Id: 10754895 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 86FE213BF for ; Wed, 9 Jan 2019 20:21:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7631229601 for ; Wed, 9 Jan 2019 20:21:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 69D822960B; Wed, 9 Jan 2019 20:21:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 15B8A29601 for ; Wed, 9 Jan 2019 20:21:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Subject:MIME-Version:Message-Id:Date:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Cti8TKGa83n29lcz9d+JFppY1TcqEKa2Ig0VykCYMuY=; b=Al0B4tnpHkzutL iNbUf1f+HQo26FKIXFexJ++FcB0KN6OqmtH3AjWnV+g47aT5mhRqpnxiWs7H0wl0vfJXg9XVZ4oLh GWjZZWJVkrI7IBWgoq//FTxVk0T20jWTg/KfgaxK4IWwd3+PCkyzTt6jvrBExkRnKlyt+YLaomT36 cvsQRHyBv7ENnR2NmecNoxiPajdj+WJ0O/Th8NUqXI+PjZufyApgyi69tpskuxfNBgyI3ZKmwd/YO SBKMXHQubM2YDcTkpLQyeBhKQcyV6awy3FCAUHSw9Jycf5yFCaLaIt1/9aQTvjw9eQJOYaI3J9pms TDM9eP0NNVe5SQT7lO0w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1ghKLu-000331-Fu; Wed, 09 Jan 2019 20:21:26 +0000 Received: from ale.deltatee.com ([207.54.116.67]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1ghKLj-0002pH-Hw for linux-arm-kernel@lists.infradead.org; Wed, 09 Jan 2019 20:21:18 +0000 Received: from cgy1-donard.priv.deltatee.com ([172.16.1.31]) by ale.deltatee.com with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ghKLa-0005pF-Ei; Wed, 09 Jan 2019 13:21:07 -0700 Received: from gunthorp by cgy1-donard.priv.deltatee.com with local (Exim 4.89) (envelope-from ) id 1ghKLW-0001p8-Kg; Wed, 09 Jan 2019 13:21:02 -0700 From: Logan Gunthorpe To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Date: Wed, 9 Jan 2019 13:20:58 -0700 Message-Id: <20190109202100.6968-1-logang@deltatee.com> X-Mailer: git-send-email 2.19.0 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 172.16.1.31 X-SA-Exim-Rcpt-To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, will.deacon@arm.com, catalin.marinas@arm.com, linux@armlinux.org.uk, sbates@raithlin.com, logang@deltatee.com X-SA-Exim-Mail-From: gunthorp@deltatee.com Subject: [PATCH 0/2] Cleanup ARM arches to use common memblocks_present X-SA-Exim-Version: 4.2.1 (built Tue, 02 Aug 2016 21:08:31 +0000) X-SA-Exim-Scanned: Yes (on ale.deltatee.com) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190109_122115_931983_0F8A8A85 X-CRM114-Status: UNSURE ( 8.55 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Catalin Marinas , Logan Gunthorpe , Will Deacon , Russell King , Stephen Bates Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Hey, We've recently added a new memblocks_present() helper macro to clean up some common code with ARM and code we are adding in RISC-V. The commit that added the helper is: 9def36e0fa9a ("mm/sparse: add common helper to mark all memblocks present") This series includes two patches to switch ARM and ARM64 to use the new function. Thanks, Logan --- Logan Gunthorpe (2): ARM: mm: make use of new memblocks_present() helper arm64: mm: make use of new memblocks_present() helper arch/arm/mm/init.c | 17 +---------------- arch/arm64/mm/init.c | 20 +------------------- 2 files changed, 2 insertions(+), 35 deletions(-) -- 2.19.0