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)
> +
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