]> git.baikalelectronics.ru Git - kernel.git/commit
bootmem: use slab if bootmem is no longer available
authorPekka Enberg <penberg@cs.helsinki.fi>
Wed, 10 Jun 2009 17:05:53 +0000 (20:05 +0300)
committerPekka Enberg <penberg@cs.helsinki.fi>
Thu, 11 Jun 2009 16:10:41 +0000 (19:10 +0300)
commit49e4e30667f52588b9e9564f0b05e2f47326dad3
tree7e614a14e34a39a63520600b810319da9f0f98ca
parentc5dbf40c43a050b1c0be8d3413a0457eec7c3933
bootmem: use slab if bootmem is no longer available

As a preparation for initializing the slab allocator early, make sure the
bootmem allocator does not crash and burn if someone calls it after slab is up;
otherwise we'd need a flag day for switching to early slab.

Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Christoph Lameter <cl@linux-foundation.org>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Matt Mackall <mpm@selenic.com>
Cc: Nick Piggin <npiggin@suse.de>
Cc: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
mm/bootmem.c