aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2007-10-01 23:37:53 -0400
committerPaul Mackerras <paulus@samba.org>2007-10-02 21:48:44 -0400
commit5669c3cf19fbadaa9120b59914beec8431277efe (patch)
tree463ead47019486cdbde965ce1ef17045b32ca73f /include
parent88de3cab98ff6c794b840969427e61605d0cc1ea (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')
-rw-r--r--include/asm-powerpc/system.h1
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;
190extern unsigned long klimit; 190extern unsigned long klimit;
191 191
192extern void *alloc_maybe_bootmem(size_t size, gfp_t mask); 192extern void *alloc_maybe_bootmem(size_t size, gfp_t mask);
193extern void *zalloc_maybe_bootmem(size_t size, gfp_t mask);
193 194
194extern int powersave_nap; /* set if nap mode can be used in idle loop */ 195extern int powersave_nap; /* set if nap mode can be used in idle loop */
195 196