]> git.karo-electronics.de Git - karo-tx-linux.git/commit
bootmem: remove alloc_arch_preferred_bootmem()
authorJoonsoo Kim <js1304@gmail.com>
Thu, 29 Nov 2012 03:17:31 +0000 (14:17 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 5 Dec 2012 05:23:12 +0000 (16:23 +1100)
commit7aea713a7c6a442ed1664cd4e097be732e3cf605
tree5785e5818a599ade2a8ba667dafc36482643f06c
parentf165b0d88d8ecaf27c1fcd05a6a783e0f998f43d
bootmem: remove alloc_arch_preferred_bootmem()

The name of this function is not suitable, and removing the function and
open-coding it into each call sites makes the code more understandable.

Additionally, we shouldn't do an allocation from bootmem when
slab_is_available(), so directly return kmalloc()'s return value.

Signed-off-by: Joonsoo Kim <js1304@gmail.com>
Cc: Haavard Skinnemoen <hskinnemoen@gmail.com>
Cc: Hans-Christian Egtvedt <egtvedt@samfundet.no>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/bootmem.c