David Rientjes d0a21265df mm: unify module_alloc code for vmalloc
Four architectures (arm, mips, sparc, x86) use __vmalloc_area() for
module_init().  Much of the code is duplicated and can be generalized in a
globally accessible function, __vmalloc_node_range().

__vmalloc_node() now calls into __vmalloc_node_range() with a range of
[VMALLOC_START, VMALLOC_END) for functionally equivalent behavior.

Each architecture may then use __vmalloc_node_range() directly to remove
the duplication of code.

Signed-off-by: David Rientjes <rientjes@google.com>
Cc: Christoph Lameter <cl@linux.com>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-01-13 17:32:34 -08:00
..
2010-05-21 21:31:14 +01:00
2008-05-01 08:03:58 -07:00
2010-10-18 16:59:02 +01:00
2010-10-29 19:08:27 +01:00
2010-10-04 18:33:54 +01:00
2010-08-05 13:26:29 +01:00
2009-08-03 17:52:40 +01:00
2010-12-16 18:10:58 +00:00
2009-07-12 12:22:34 -07:00
2010-10-27 18:03:11 -07:00
2006-12-10 21:52:11 +00:00
2010-10-15 15:53:27 +02:00
2010-12-16 18:11:00 +00:00
2010-10-07 14:08:55 +01:00
2009-06-24 18:34:40 +01:00
2010-07-26 19:08:16 +01:00