Re: [PATCH RFC] powerpc/mm: Support bootmem for PPC64 again
From: Balbir Singh <bsingharora@gmail.com>
Date: 2016-03-26 07:15:51
From: Balbir Singh <bsingharora@gmail.com>
Date: 2016-03-26 07:15:51
On Sat, Mar 26, 2016 at 3:03 AM, Gavin Shan [off-list ref] wrote:
CONFIG_NO_BOOTMEM is enabled on PPC platforms by default. However, user might disable that to have bootmem for other purpose. So it's resonable to support it.
The changelog could use some rewriting. What other purpose would bootmem would be used for?
This implements setup_bootmem() which is called by initmem_init() to setup bootmem node and its free bitmap. In the meantime, the free pages frames tracked by memblock are released to bootmem. In theory, we also need similar thing for PPC32 platforms. However, I don't have machine for testing. So that would be something later when I have hardware to test.
Balbir Singh