diff options
Diffstat (limited to 'mm/bounce.c')
-rw-r--r-- | mm/bounce.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/mm/bounce.c b/mm/bounce.c index d1be02ca1889..042086775561 100644 --- a/mm/bounce.c +++ b/mm/bounce.c | |||
@@ -24,23 +24,25 @@ | |||
24 | 24 | ||
25 | static mempool_t *page_pool, *isa_page_pool; | 25 | static mempool_t *page_pool, *isa_page_pool; |
26 | 26 | ||
27 | #ifdef CONFIG_HIGHMEM | 27 | #if defined(CONFIG_HIGHMEM) || defined(CONFIG_NEED_BOUNCE_POOL) |
28 | static __init int init_emergency_pool(void) | 28 | static __init int init_emergency_pool(void) |
29 | { | 29 | { |
30 | #ifndef CONFIG_MEMORY_HOTPLUG | 30 | #if defined(CONFIG_HIGHMEM) && !defined(CONFIG_MEMORY_HOTPLUG) |
31 | if (max_pfn <= max_low_pfn) | 31 | if (max_pfn <= max_low_pfn) |
32 | return 0; | 32 | return 0; |
33 | #endif | 33 | #endif |
34 | 34 | ||
35 | page_pool = mempool_create_page_pool(POOL_SIZE, 0); | 35 | page_pool = mempool_create_page_pool(POOL_SIZE, 0); |
36 | BUG_ON(!page_pool); | 36 | BUG_ON(!page_pool); |
37 | printk("highmem bounce pool size: %d pages\n", POOL_SIZE); | 37 | printk("bounce pool size: %d pages\n", POOL_SIZE); |
38 | 38 | ||
39 | return 0; | 39 | return 0; |
40 | } | 40 | } |
41 | 41 | ||
42 | __initcall(init_emergency_pool); | 42 | __initcall(init_emergency_pool); |
43 | #endif | ||
43 | 44 | ||
45 | #ifdef CONFIG_HIGHMEM | ||
44 | /* | 46 | /* |
45 | * highmem version, map in to vec | 47 | * highmem version, map in to vec |
46 | */ | 48 | */ |