mem_init_done (was: Re: [PATCH] [POWERPC] Limit range of __init_ref_ok somewhat)

2007-10-02 Thread Geert Uytterhoeven
On Tue, 2 Oct 2007, Stephen Rothwell wrote: > +void * __init_refok zalloc_maybe_bootmem(size_t size, gfp_t mask) > +{ > + void *p; > + > + if (mem_init_done) > + p = kzalloc(size, mask); > + else { > + p = alloc_bootmem(size); > + if (p) > +

[PATCH] [POWERPC] Limit range of __init_ref_ok somewhat

2007-10-01 Thread Stephen Rothwell
This patch introduces zalloc_maybe_bootmem and uses it so that we don;t have to mark a whole (largish) routine as __init_ref_ok. Signed-off-by: Stephen Rothwell <[EMAIL PROTECTED]> --- arch/powerpc/kernel/irq.c| 10 ++ arch/powerpc/lib/alloc.c | 15 +++ include/asm