diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2010-08-03 20:26:03 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2010-08-03 20:26:03 -0400 |
commit | 412a4ac5e9cf7fdeb6af562c25547a9b9da7674f (patch) | |
tree | a8ce13cbc9c47c99799e5e3e3ad26ba78274ee73 /arch/powerpc/kernel/paca.c | |
parent | e8e5c2155b0035b6e04f29be67f6444bc914005b (diff) | |
parent | 0c2daaafcdec726e89cbccca61d576de8429c537 (diff) |
Merge commit 'gcl/next' into next
Diffstat (limited to 'arch/powerpc/kernel/paca.c')
-rw-r--r-- | arch/powerpc/kernel/paca.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/powerpc/kernel/paca.c b/arch/powerpc/kernel/paca.c index 3db8d64f40e1..d0a26f1770fe 100644 --- a/arch/powerpc/kernel/paca.c +++ b/arch/powerpc/kernel/paca.c | |||
@@ -9,7 +9,7 @@ | |||
9 | 9 | ||
10 | #include <linux/threads.h> | 10 | #include <linux/threads.h> |
11 | #include <linux/module.h> | 11 | #include <linux/module.h> |
12 | #include <linux/lmb.h> | 12 | #include <linux/memblock.h> |
13 | 13 | ||
14 | #include <asm/firmware.h> | 14 | #include <asm/firmware.h> |
15 | #include <asm/lppaca.h> | 15 | #include <asm/lppaca.h> |
@@ -127,7 +127,7 @@ void __init allocate_pacas(void) | |||
127 | * the first segment. On iSeries they must be within the area mapped | 127 | * the first segment. On iSeries they must be within the area mapped |
128 | * by the HV, which is HvPagesToMap * HVPAGESIZE bytes. | 128 | * by the HV, which is HvPagesToMap * HVPAGESIZE bytes. |
129 | */ | 129 | */ |
130 | limit = min(0x10000000ULL, lmb.rmo_size); | 130 | limit = min(0x10000000ULL, memblock.rmo_size); |
131 | if (firmware_has_feature(FW_FEATURE_ISERIES)) | 131 | if (firmware_has_feature(FW_FEATURE_ISERIES)) |
132 | limit = min(limit, HvPagesToMap * HVPAGESIZE); | 132 | limit = min(limit, HvPagesToMap * HVPAGESIZE); |
133 | 133 | ||
@@ -138,7 +138,7 @@ void __init allocate_pacas(void) | |||
138 | 138 | ||
139 | paca_size = PAGE_ALIGN(sizeof(struct paca_struct) * nr_cpus); | 139 | paca_size = PAGE_ALIGN(sizeof(struct paca_struct) * nr_cpus); |
140 | 140 | ||
141 | paca = __va(lmb_alloc_base(paca_size, PAGE_SIZE, limit)); | 141 | paca = __va(memblock_alloc_base(paca_size, PAGE_SIZE, limit)); |
142 | memset(paca, 0, paca_size); | 142 | memset(paca, 0, paca_size); |
143 | 143 | ||
144 | printk(KERN_DEBUG "Allocated %u bytes for %d pacas at %p\n", | 144 | printk(KERN_DEBUG "Allocated %u bytes for %d pacas at %p\n", |
@@ -158,7 +158,7 @@ void __init free_unused_pacas(void) | |||
158 | if (new_size >= paca_size) | 158 | if (new_size >= paca_size) |
159 | return; | 159 | return; |
160 | 160 | ||
161 | lmb_free(__pa(paca) + new_size, paca_size - new_size); | 161 | memblock_free(__pa(paca) + new_size, paca_size - new_size); |
162 | 162 | ||
163 | printk(KERN_DEBUG "Freed %u bytes for unused pacas\n", | 163 | printk(KERN_DEBUG "Freed %u bytes for unused pacas\n", |
164 | paca_size - new_size); | 164 | paca_size - new_size); |