[RFC 3/7] powerpc/mm: Define TOP_ZONE as a constant

Balbir Singh bsingharora at gmail.com
Tue May 3 18:12:33 AEST 2016



On 03/05/16 16:29, Anshuman Khandual wrote:
> From: Oliver O'Halloran <oohall at gmail.com>
> 
> The zone that contains the top of the memory will be either ZONE_NORMAL
> or ZONE_HIGHMEM depending on the kernel config. There are two functions
> in there which require this information and both of them use an #ifdef
> to set a local variable (top_zone). This is a little nuts, so lets just
> make it a constant.
> 
> Signed-off-by: Oliver O'Halloran <oohall at gmail.com>
> ---
Looks good
Reviewed-by: Balbir Singh <bsingharora at gmail.com>


More information about the Linuxppc-dev mailing list