From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752414AbbLUWBY (ORCPT ); Mon, 21 Dec 2015 17:01:24 -0500 Received: from mout.kundenserver.de ([212.227.126.134]:54717 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751274AbbLUWBW (ORCPT ); Mon, 21 Dec 2015 17:01:22 -0500 From: Arnd Bergmann To: Laura Abbott Subject: Re: Query about merging memblock and bootmem into one new alloc Date: Mon, 21 Dec 2015 23:01:01 +0100 User-Agent: KMail/1.12.2 (Linux/3.19.0-27-generic; KDE/4.3.2; x86_64; ; ) Cc: Sumit Gupta , inux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org References: <567835B4.3090101@redhat.com> In-Reply-To: <567835B4.3090101@redhat.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201512212301.02148.arnd@arndb.de> X-Provags-ID: V03:K0:DdHn+ww2ZOo/0FOoRml2Qq5kszKhQO4hiyKG2ctcmlqKWtU6Y/F H0Mm2+7k+0jk0hg+mvSYACatx6pg7/rwCJVFedU0737uRRPpDT5j0Eeo4Okf9Acl47z23oG Pmy9TNDtJTm5Hu5DkpDb86LENgsRcBLV0kUHVoE+eoHWjtVie4ue0k5RdIrmG6I9hZE74iX HkscYO4np7xvvucHvkXyg== X-UI-Out-Filterresults: notjunk:1;V01:K0:7BXJZUZdwkk=:qQMP/63lG/gtSR4y9FPicE ugMvUuF+04DqPCjj2hi40jYkt3sglj8a6kg6Q33+FC2wGhSJjDd1sKCu40kBJPJTm/4DC2wXJ iaXQrlzgs+rBVPcQmqzbMVt90PN1ojnXwpgCMQacQU7MUqHPHzQ0W3BA54JpWSBdJB/21Ilkg 2az/DV+6lOJkBgjecVgDj2A8QXk59piZypjjeUc8BVmG/bsWXmVYjyiV1jCRF8ND5ZkeTvuR3 03rQvohKAD2AzVzVajH3VkbPIwUIIuM+59Rvf3lKIXki0ZbPD5EABMwBHV2pja75z091plkmP 7laYyBzhJRHaMKMkA5UoNd1TtFuMNvQkgLqEFa1THrVrE0RrPW7NODUzLxduISeaoxvt+rcSi Zi0Z6YRRTDHYVSAp11IoCosLHbm97xwmkTrP+ZkGyNPUuxDzBWeMV+UtmVuzXmQwl9dxM5xS9 ++ddw4BdM40UkBYRP3ChfELjpASBiArUrhdIJN4cFpriKljg9VqFz7opSPamzIA2VUwl1YPFJ MK3vYSQDssud6ABDwRuvFEmN8nIUATYrGG+1SnSBClRHLAnBzEtHCviXXk9Aqm7EZFCVgoPyQ MB18XMbtZrv3ccSDx6fgrUKvd42wxSciuxKOjV7vkOSHqWmmB3fdZ+FhhpYTa+i4+/nrDfcYc KiGMctqF8WRVebpCG2PCjDIoqnh3kqB3ugKQy1oz/xxRL8ZydtavLW4EF9dvXEEwDV33WmwFw YYRIbeLWBwwc2b2c Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Monday 21 December 2015, Laura Abbott wrote: > ARM no longer uses bootmem, just memblock (see 84f452b1e8fc73ac0e31254c66e3e2260ce5263d > ARM: mm: Remove bootmem code and switch to NO_BOOTMEM). Any bootmem calls > just go to mm/nobootmem.c which is a wrapper around memblock for compatibility. It seems the same is true on arc, arm64, powerpc, s390, sparc, tile and x86, and we'd ideally move all others the same way. Almost all uses of the bootmem interfaces are in architectures specific code these days, the only exceptions I could find at all are alloc_bootmem_pages in drivers/xen/swiotlb-xen.c, and alloc_bootmem in drivers/macintosh/smu.c and init/main.c. I don't know how the effort to remove bootmem is progressing, but I guess we could avoid adding new users if we move the existing implementation into the architectures that still use it, remove the interfaces not used by those architectures and rename the other ones to have a prefix identifying the architecture. Arnd