[Cbe-oss-dev] [Lhms-devel] Subject: [RFC] spufs: memory-add fix for CONFIG_NUMA
Arnd Bergmann
arnd at arndb.de
Wed Apr 12 07:24:21 EST 2006
Am Tuesday 11 April 2006 22:55 schrieb Dave Hansen:
> On Tue, 2006-04-11 at 18:26 +0200, Arnd Bergmann wrote:
> > Unfortunately, the memory hot-add code is currently a little
> > broken (tries to do bootmem_alloc and kmalloc from the
> > same function),
>
> Why is this broken?
The bootmem_alloc function can only be called before mem_init(),
the kmalloc function can only be called after kmem_cache_init(),
which is run after the former.
Calling the two functions in sequence is guaranteed to fail on
either of them.
Arnd <><
More information about the cbe-oss-dev
mailing list