memblock: Allow memblock_init to be called early
authorJeremy Fitzhardinge <jeremy@goop.org>
Wed, 6 Oct 2010 22:52:29 +0000 (15:52 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Mon, 11 Oct 2010 22:59:01 +0000 (15:59 -0700)
commit236260b90dd94516982ad67aa6f5449c4c37db7b
tree45fc2bc1053e41630f88a1a4c4757bba817f34e8
parent153db80f8cf74e8700cac96305b6c0b92918f17c
memblock: Allow memblock_init to be called early

The Xen setup code needs to call memblock_x86_reserve_range() very early,
so allow it to initialize the memblock subsystem before doing so.  The
second memblock_init() is ignored.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Cc: Yinghai Lu <yinghai@kernel.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
LKML-Reference: <4CACFDAD.3090900@goop.org>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/xen/enlighten.c
mm/memblock.c