diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2007-10-01 23:37:53 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-10-02 21:48:44 -0400 |
commit | 5669c3cf19fbadaa9120b59914beec8431277efe (patch) | |
tree | 463ead47019486cdbde965ce1ef17045b32ca73f /include/asm-powerpc/system.h | |
parent | 88de3cab98ff6c794b840969427e61605d0cc1ea (diff) |
[POWERPC] Limit range of __init_ref_ok somewhat
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 <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc/system.h')
-rw-r--r-- | include/asm-powerpc/system.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/asm-powerpc/system.h b/include/asm-powerpc/system.h index f7879fc530f1..d10e99bf5001 100644 --- a/include/asm-powerpc/system.h +++ b/include/asm-powerpc/system.h | |||
@@ -190,6 +190,7 @@ extern unsigned long memory_limit; | |||
190 | extern unsigned long klimit; | 190 | extern unsigned long klimit; |
191 | 191 | ||
192 | extern void *alloc_maybe_bootmem(size_t size, gfp_t mask); | 192 | extern void *alloc_maybe_bootmem(size_t size, gfp_t mask); |
193 | extern void *zalloc_maybe_bootmem(size_t size, gfp_t mask); | ||
193 | 194 | ||
194 | extern int powersave_nap; /* set if nap mode can be used in idle loop */ | 195 | extern int powersave_nap; /* set if nap mode can be used in idle loop */ |
195 | 196 | ||