diff options
author | Lachlan McIlroy <lachlan@redback.melbourne.sgi.com> | 2008-02-25 22:26:14 -0500 |
---|---|---|
committer | Lachlan McIlroy <lachlan@redback.melbourne.sgi.com> | 2008-02-25 22:26:14 -0500 |
commit | 91e229bbad6524aabaac8717b2f559283670c37a (patch) | |
tree | 84a55e4ac2dcf23add97bd9fde3e9cb232c12b30 /mm/internal.h | |
parent | 6e5e93424dc66542c548dfaa3bfebe30d46d50dd (diff) | |
parent | bfa274e2436fc7ef72ef51c878083647f1cfd429 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6 into for-linus
Diffstat (limited to 'mm/internal.h')
-rw-r--r-- | mm/internal.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/mm/internal.h b/mm/internal.h index 5a9a6200e034..789727309f4d 100644 --- a/mm/internal.h +++ b/mm/internal.h | |||
@@ -47,4 +47,17 @@ static inline unsigned long page_order(struct page *page) | |||
47 | VM_BUG_ON(!PageBuddy(page)); | 47 | VM_BUG_ON(!PageBuddy(page)); |
48 | return page_private(page); | 48 | return page_private(page); |
49 | } | 49 | } |
50 | |||
51 | /* | ||
52 | * FLATMEM and DISCONTIGMEM configurations use alloc_bootmem_node, | ||
53 | * so all functions starting at paging_init should be marked __init | ||
54 | * in those cases. SPARSEMEM, however, allows for memory hotplug, | ||
55 | * and alloc_bootmem_node is not used. | ||
56 | */ | ||
57 | #ifdef CONFIG_SPARSEMEM | ||
58 | #define __paginginit __meminit | ||
59 | #else | ||
60 | #define __paginginit __init | ||
61 | #endif | ||
62 | |||
50 | #endif | 63 | #endif |