staging: zsmalloc: calculate MAX_PHYSMEM_BITS if not defined
authorSeth Jennings <sjenning@linux.vnet.ibm.com>
Mon, 5 Mar 2012 17:33:22 +0000 (11:33 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 7 Mar 2012 21:31:28 +0000 (13:31 -0800)
commit6e00ec00b1a76a199b8c0acae401757b795daf57
tree4027a9ac683f82afefe24ffe57a6973362ba542d
parent84d4faaba27991bde9fa5ec0716d14ad279ba8ab
staging: zsmalloc: calculate MAX_PHYSMEM_BITS if not defined

This patch provides a way to determine or "set a
reasonable value for" MAX_PHYSMEM_BITS in the case that
it is not defined (i.e. !SPARSEMEM)

Signed-off-by: Seth Jennings <sjenning@linux.vnet.ibm.com>
Acked-by: Nitin Gupta <ngupta@vflare.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/zsmalloc/zsmalloc_int.h