powerpc/mm: define TOP_ZONE as a constant
authorOliver O'Halloran <oohall@gmail.com>
Thu, 5 May 2016 07:54:08 +0000 (17:54 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 11 May 2016 11:54:08 +0000 (21:54 +1000)
commitdd0b52c47a2d71b7960c9a5ce7d51f17ed03d9f5
treef9f9f0c7c1f0699056de5b8a4d5818afb8c400a7
parent66707836062db62756b395d1fb16ab02ff162862
powerpc/mm: define TOP_ZONE as a constant

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
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.

Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Cc: linux-mm@kvack.org
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/mem.c