Re: [PATCH 1/2] powerpc/mm: define TOP_ZONE as a constant

2016-05-05 Thread Balbir Singh
On Thu, May 5, 2016 at 4:24 PM, Oliver O'Halloran wrote: > The zone that contains the top of memory will be either ZONE_NORMAL > or ZONE_HIGHMEM depending on the kernel config. There are two functions > in that require this information and both of them use an #ifdef to set > a local variable (top_

[PATCH 1/2] powerpc/mm: define TOP_ZONE as a constant

2016-05-04 Thread Oliver O'Halloran
The zone that contains the top of memory will be either ZONE_NORMAL or ZONE_HIGHMEM depending on the kernel config. There are two functions in that require this information and both of them use an #ifdef to set a local variable (top_zone). This is a little silly so lets just make it a constant. Si