]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: add vm_area_add_early()
authorNicolas Pitre <nicolas.pitre@linaro.org>
Tue, 8 Nov 2011 00:20:15 +0000 (11:20 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 16 Nov 2011 01:47:04 +0000 (12:47 +1100)
commit74a151d4b3c3e0e3f63dd2cbd1b2f69691ece3de
tree1ab508f53132bf38138268a5c6e17871101efba0
parentde9b39aa110abdd480501eec10ea057b921b3cb0
mm: add vm_area_add_early()

The existing vm_area_register_early() allows for early vmalloc space
allocation.  However upcoming cleanups in the ARM architecture require
that some fixed locations in the vmalloc area be reserved also very early.

The name "vm_area_register_early" would have been a good name for the
reservation part without the allocation.  Since it is already in use with

Both vm_area_register_early() and vm_area_add_early() can be used together
meaning that the former is now implemented using the later where it is
ensured that no conflicting areas are added, but no attempt is made to
make the allocation scheme in vm_area_register_early() more sophisticated.
After all, you must know what you're doing when using those functions.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/vmalloc.h
mm/vmalloc.c