ARM: move initialization of the high_memory variable earlier
authorNicolas Pitre <nicolas.pitre@linaro.org>
Mon, 19 Sep 2011 02:40:00 +0000 (22:40 -0400)
committerGrazvydas Ignotas <notasas@gmail.com>
Tue, 26 Feb 2013 17:50:59 +0000 (19:50 +0200)
commitf85be2dd98e44ed5dcb9bee9dbe0a53b464fde8b
treec7a592dd5647d0170376631a9e6daaea4993180f
parent51ab0eb509a68d7b7ecedd795213285186d37eed
ARM: move initialization of the high_memory variable earlier

Some upcoming changes must know the VMALLOC_START value, which is based
on high_memory, before bootmem_init() is called.

The best location to set it is in sanity_check_meminfo() where the needed
computation is already done, and in the non MMU case it is trivial to do
now that the meminfo array is already sorted at that point.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
arch/arm/mm/init.c
arch/arm/mm/mmu.c
arch/arm/mm/nommu.c