]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: add vm_area_add_early()
authorNicolas Pitre <nicolas.pitre@linaro.org>
Mon, 24 Oct 2011 14:54:32 +0000 (01:54 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 2 Nov 2011 04:59:12 +0000 (15:59 +1100)
commitc042a73c6793c8be5676483ee2c82a133b42de0e
tree9805f0eb28d36eaedeeb7ae3d45b0532be86e062
parent5a7c7b3466eb72e6aee21e14ff914ade5777b27f
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