diff options
author | Jiri Kosina <jkosina@suse.cz> | 2010-08-04 09:14:38 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2010-08-04 09:14:38 -0400 |
commit | d790d4d583aeaed9fc6f8a9f4d9f8ce6b1c15c7f (patch) | |
tree | 854ab394486288d40fa8179cbfaf66e8bdc44b0f /arch/sh | |
parent | 73b2c7165b76b20eb1290e7efebc33cfd21db1ca (diff) | |
parent | 3a09b1be53d23df780a0cd0e4087a05e2ca4a00c (diff) |
Merge branch 'master' into for-next
Diffstat (limited to 'arch/sh')
-rw-r--r-- | arch/sh/Kconfig | 2 | ||||
-rw-r--r-- | arch/sh/boards/mach-ecovec24/setup.c | 1 | ||||
-rw-r--r-- | arch/sh/drivers/pci/pci.c | 2 | ||||
-rw-r--r-- | arch/sh/include/asm/lmb.h | 6 | ||||
-rw-r--r-- | arch/sh/include/asm/memblock.h | 6 | ||||
-rw-r--r-- | arch/sh/kernel/machine_kexec.c | 18 | ||||
-rw-r--r-- | arch/sh/kernel/setup.c | 8 | ||||
-rw-r--r-- | arch/sh/mm/init.c | 40 | ||||
-rw-r--r-- | arch/sh/mm/numa.c | 8 | ||||
-rw-r--r-- | arch/sh/mm/pmb.c | 2 |
10 files changed, 45 insertions, 48 deletions
diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig index 573fca1fbd9b..82868fee21fd 100644 --- a/arch/sh/Kconfig +++ b/arch/sh/Kconfig | |||
@@ -10,7 +10,7 @@ config SUPERH | |||
10 | select EMBEDDED | 10 | select EMBEDDED |
11 | select HAVE_CLK | 11 | select HAVE_CLK |
12 | select HAVE_IDE if HAS_IOPORT | 12 | select HAVE_IDE if HAS_IOPORT |
13 | select HAVE_LMB | 13 | select HAVE_MEMBLOCK |
14 | select HAVE_OPROFILE | 14 | select HAVE_OPROFILE |
15 | select HAVE_GENERIC_DMA_COHERENT | 15 | select HAVE_GENERIC_DMA_COHERENT |
16 | select HAVE_ARCH_TRACEHOOK | 16 | select HAVE_ARCH_TRACEHOOK |
diff --git a/arch/sh/boards/mach-ecovec24/setup.c b/arch/sh/boards/mach-ecovec24/setup.c index be1d114d3a43..1d7b495a7db4 100644 --- a/arch/sh/boards/mach-ecovec24/setup.c +++ b/arch/sh/boards/mach-ecovec24/setup.c | |||
@@ -25,7 +25,6 @@ | |||
25 | #include <linux/spi/spi.h> | 25 | #include <linux/spi/spi.h> |
26 | #include <linux/spi/sh_msiof.h> | 26 | #include <linux/spi/sh_msiof.h> |
27 | #include <linux/spi/mmc_spi.h> | 27 | #include <linux/spi/mmc_spi.h> |
28 | #include <linux/mmc/host.h> | ||
29 | #include <linux/input.h> | 28 | #include <linux/input.h> |
30 | #include <linux/input/sh_keysc.h> | 29 | #include <linux/input/sh_keysc.h> |
31 | #include <video/sh_mobile_lcdc.h> | 30 | #include <video/sh_mobile_lcdc.h> |
diff --git a/arch/sh/drivers/pci/pci.c b/arch/sh/drivers/pci/pci.c index 953af139e230..1e9598d2bbf4 100644 --- a/arch/sh/drivers/pci/pci.c +++ b/arch/sh/drivers/pci/pci.c | |||
@@ -139,8 +139,6 @@ static void pcibios_fixup_device_resources(struct pci_dev *dev, | |||
139 | for (i = 0; i < PCI_NUM_RESOURCES; i++) { | 139 | for (i = 0; i < PCI_NUM_RESOURCES; i++) { |
140 | if (!dev->resource[i].start) | 140 | if (!dev->resource[i].start) |
141 | continue; | 141 | continue; |
142 | if (dev->resource[i].flags & IORESOURCE_PCI_FIXED) | ||
143 | continue; | ||
144 | if (dev->resource[i].flags & IORESOURCE_IO) | 142 | if (dev->resource[i].flags & IORESOURCE_IO) |
145 | offset = hose->io_offset; | 143 | offset = hose->io_offset; |
146 | else if (dev->resource[i].flags & IORESOURCE_MEM) | 144 | else if (dev->resource[i].flags & IORESOURCE_MEM) |
diff --git a/arch/sh/include/asm/lmb.h b/arch/sh/include/asm/lmb.h deleted file mode 100644 index 9b437f657ffa..000000000000 --- a/arch/sh/include/asm/lmb.h +++ /dev/null | |||
@@ -1,6 +0,0 @@ | |||
1 | #ifndef __ASM_SH_LMB_H | ||
2 | #define __ASM_SH_LMB_H | ||
3 | |||
4 | #define LMB_REAL_LIMIT 0 | ||
5 | |||
6 | #endif /* __ASM_SH_LMB_H */ | ||
diff --git a/arch/sh/include/asm/memblock.h b/arch/sh/include/asm/memblock.h new file mode 100644 index 000000000000..dfe683b88075 --- /dev/null +++ b/arch/sh/include/asm/memblock.h | |||
@@ -0,0 +1,6 @@ | |||
1 | #ifndef __ASM_SH_MEMBLOCK_H | ||
2 | #define __ASM_SH_MEMBLOCK_H | ||
3 | |||
4 | #define MEMBLOCK_REAL_LIMIT 0 | ||
5 | |||
6 | #endif /* __ASM_SH_MEMBLOCK_H */ | ||
diff --git a/arch/sh/kernel/machine_kexec.c b/arch/sh/kernel/machine_kexec.c index 5a559e666eb3..e2a3af31ff99 100644 --- a/arch/sh/kernel/machine_kexec.c +++ b/arch/sh/kernel/machine_kexec.c | |||
@@ -15,7 +15,7 @@ | |||
15 | #include <linux/numa.h> | 15 | #include <linux/numa.h> |
16 | #include <linux/ftrace.h> | 16 | #include <linux/ftrace.h> |
17 | #include <linux/suspend.h> | 17 | #include <linux/suspend.h> |
18 | #include <linux/lmb.h> | 18 | #include <linux/memblock.h> |
19 | #include <asm/pgtable.h> | 19 | #include <asm/pgtable.h> |
20 | #include <asm/pgalloc.h> | 20 | #include <asm/pgalloc.h> |
21 | #include <asm/mmu_context.h> | 21 | #include <asm/mmu_context.h> |
@@ -157,10 +157,10 @@ void __init reserve_crashkernel(void) | |||
157 | unsigned long long crash_size, crash_base; | 157 | unsigned long long crash_size, crash_base; |
158 | int ret; | 158 | int ret; |
159 | 159 | ||
160 | /* this is necessary because of lmb_phys_mem_size() */ | 160 | /* this is necessary because of memblock_phys_mem_size() */ |
161 | lmb_analyze(); | 161 | memblock_analyze(); |
162 | 162 | ||
163 | ret = parse_crashkernel(boot_command_line, lmb_phys_mem_size(), | 163 | ret = parse_crashkernel(boot_command_line, memblock_phys_mem_size(), |
164 | &crash_size, &crash_base); | 164 | &crash_size, &crash_base); |
165 | if (ret == 0 && crash_size > 0) { | 165 | if (ret == 0 && crash_size > 0) { |
166 | crashk_res.start = crash_base; | 166 | crashk_res.start = crash_base; |
@@ -172,14 +172,14 @@ void __init reserve_crashkernel(void) | |||
172 | 172 | ||
173 | crash_size = PAGE_ALIGN(crashk_res.end - crashk_res.start + 1); | 173 | crash_size = PAGE_ALIGN(crashk_res.end - crashk_res.start + 1); |
174 | if (!crashk_res.start) { | 174 | if (!crashk_res.start) { |
175 | unsigned long max = lmb_end_of_DRAM() - memory_limit; | 175 | unsigned long max = memblock_end_of_DRAM() - memory_limit; |
176 | crashk_res.start = __lmb_alloc_base(crash_size, PAGE_SIZE, max); | 176 | crashk_res.start = __memblock_alloc_base(crash_size, PAGE_SIZE, max); |
177 | if (!crashk_res.start) { | 177 | if (!crashk_res.start) { |
178 | pr_err("crashkernel allocation failed\n"); | 178 | pr_err("crashkernel allocation failed\n"); |
179 | goto disable; | 179 | goto disable; |
180 | } | 180 | } |
181 | } else { | 181 | } else { |
182 | ret = lmb_reserve(crashk_res.start, crash_size); | 182 | ret = memblock_reserve(crashk_res.start, crash_size); |
183 | if (unlikely(ret < 0)) { | 183 | if (unlikely(ret < 0)) { |
184 | pr_err("crashkernel reservation failed - " | 184 | pr_err("crashkernel reservation failed - " |
185 | "memory is in use\n"); | 185 | "memory is in use\n"); |
@@ -192,7 +192,7 @@ void __init reserve_crashkernel(void) | |||
192 | /* | 192 | /* |
193 | * Crash kernel trumps memory limit | 193 | * Crash kernel trumps memory limit |
194 | */ | 194 | */ |
195 | if ((lmb_end_of_DRAM() - memory_limit) <= crashk_res.end) { | 195 | if ((memblock_end_of_DRAM() - memory_limit) <= crashk_res.end) { |
196 | memory_limit = 0; | 196 | memory_limit = 0; |
197 | pr_info("Disabled memory limit for crashkernel\n"); | 197 | pr_info("Disabled memory limit for crashkernel\n"); |
198 | } | 198 | } |
@@ -201,7 +201,7 @@ void __init reserve_crashkernel(void) | |||
201 | "for crashkernel (System RAM: %ldMB)\n", | 201 | "for crashkernel (System RAM: %ldMB)\n", |
202 | (unsigned long)(crash_size >> 20), | 202 | (unsigned long)(crash_size >> 20), |
203 | (unsigned long)(crashk_res.start), | 203 | (unsigned long)(crashk_res.start), |
204 | (unsigned long)(lmb_phys_mem_size() >> 20)); | 204 | (unsigned long)(memblock_phys_mem_size() >> 20)); |
205 | 205 | ||
206 | return; | 206 | return; |
207 | 207 | ||
diff --git a/arch/sh/kernel/setup.c b/arch/sh/kernel/setup.c index 272734681d29..e769401a78ba 100644 --- a/arch/sh/kernel/setup.c +++ b/arch/sh/kernel/setup.c | |||
@@ -30,7 +30,7 @@ | |||
30 | #include <linux/clk.h> | 30 | #include <linux/clk.h> |
31 | #include <linux/delay.h> | 31 | #include <linux/delay.h> |
32 | #include <linux/platform_device.h> | 32 | #include <linux/platform_device.h> |
33 | #include <linux/lmb.h> | 33 | #include <linux/memblock.h> |
34 | #include <asm/uaccess.h> | 34 | #include <asm/uaccess.h> |
35 | #include <asm/io.h> | 35 | #include <asm/io.h> |
36 | #include <asm/page.h> | 36 | #include <asm/page.h> |
@@ -141,10 +141,10 @@ void __init check_for_initrd(void) | |||
141 | goto disable; | 141 | goto disable; |
142 | } | 142 | } |
143 | 143 | ||
144 | if (unlikely(end > lmb_end_of_DRAM())) { | 144 | if (unlikely(end > memblock_end_of_DRAM())) { |
145 | pr_err("initrd extends beyond end of memory " | 145 | pr_err("initrd extends beyond end of memory " |
146 | "(0x%08lx > 0x%08lx)\ndisabling initrd\n", | 146 | "(0x%08lx > 0x%08lx)\ndisabling initrd\n", |
147 | end, (unsigned long)lmb_end_of_DRAM()); | 147 | end, (unsigned long)memblock_end_of_DRAM()); |
148 | goto disable; | 148 | goto disable; |
149 | } | 149 | } |
150 | 150 | ||
@@ -161,7 +161,7 @@ void __init check_for_initrd(void) | |||
161 | initrd_start = (unsigned long)__va(__pa(start)); | 161 | initrd_start = (unsigned long)__va(__pa(start)); |
162 | initrd_end = initrd_start + INITRD_SIZE; | 162 | initrd_end = initrd_start + INITRD_SIZE; |
163 | 163 | ||
164 | lmb_reserve(__pa(initrd_start), INITRD_SIZE); | 164 | memblock_reserve(__pa(initrd_start), INITRD_SIZE); |
165 | 165 | ||
166 | return; | 166 | return; |
167 | 167 | ||
diff --git a/arch/sh/mm/init.c b/arch/sh/mm/init.c index 46f84de62469..d0e249100e98 100644 --- a/arch/sh/mm/init.c +++ b/arch/sh/mm/init.c | |||
@@ -16,7 +16,7 @@ | |||
16 | #include <linux/pagemap.h> | 16 | #include <linux/pagemap.h> |
17 | #include <linux/percpu.h> | 17 | #include <linux/percpu.h> |
18 | #include <linux/io.h> | 18 | #include <linux/io.h> |
19 | #include <linux/lmb.h> | 19 | #include <linux/memblock.h> |
20 | #include <linux/dma-mapping.h> | 20 | #include <linux/dma-mapping.h> |
21 | #include <asm/mmu_context.h> | 21 | #include <asm/mmu_context.h> |
22 | #include <asm/mmzone.h> | 22 | #include <asm/mmzone.h> |
@@ -33,7 +33,7 @@ pgd_t swapper_pg_dir[PTRS_PER_PGD]; | |||
33 | 33 | ||
34 | void __init generic_mem_init(void) | 34 | void __init generic_mem_init(void) |
35 | { | 35 | { |
36 | lmb_add(__MEMORY_START, __MEMORY_SIZE); | 36 | memblock_add(__MEMORY_START, __MEMORY_SIZE); |
37 | } | 37 | } |
38 | 38 | ||
39 | void __init __weak plat_mem_setup(void) | 39 | void __init __weak plat_mem_setup(void) |
@@ -176,12 +176,12 @@ void __init allocate_pgdat(unsigned int nid) | |||
176 | get_pfn_range_for_nid(nid, &start_pfn, &end_pfn); | 176 | get_pfn_range_for_nid(nid, &start_pfn, &end_pfn); |
177 | 177 | ||
178 | #ifdef CONFIG_NEED_MULTIPLE_NODES | 178 | #ifdef CONFIG_NEED_MULTIPLE_NODES |
179 | phys = __lmb_alloc_base(sizeof(struct pglist_data), | 179 | phys = __memblock_alloc_base(sizeof(struct pglist_data), |
180 | SMP_CACHE_BYTES, end_pfn << PAGE_SHIFT); | 180 | SMP_CACHE_BYTES, end_pfn << PAGE_SHIFT); |
181 | /* Retry with all of system memory */ | 181 | /* Retry with all of system memory */ |
182 | if (!phys) | 182 | if (!phys) |
183 | phys = __lmb_alloc_base(sizeof(struct pglist_data), | 183 | phys = __memblock_alloc_base(sizeof(struct pglist_data), |
184 | SMP_CACHE_BYTES, lmb_end_of_DRAM()); | 184 | SMP_CACHE_BYTES, memblock_end_of_DRAM()); |
185 | if (!phys) | 185 | if (!phys) |
186 | panic("Can't allocate pgdat for node %d\n", nid); | 186 | panic("Can't allocate pgdat for node %d\n", nid); |
187 | 187 | ||
@@ -212,7 +212,7 @@ static void __init bootmem_init_one_node(unsigned int nid) | |||
212 | 212 | ||
213 | total_pages = bootmem_bootmap_pages(p->node_spanned_pages); | 213 | total_pages = bootmem_bootmap_pages(p->node_spanned_pages); |
214 | 214 | ||
215 | paddr = lmb_alloc(total_pages << PAGE_SHIFT, PAGE_SIZE); | 215 | paddr = memblock_alloc(total_pages << PAGE_SHIFT, PAGE_SIZE); |
216 | if (!paddr) | 216 | if (!paddr) |
217 | panic("Can't allocate bootmap for nid[%d]\n", nid); | 217 | panic("Can't allocate bootmap for nid[%d]\n", nid); |
218 | 218 | ||
@@ -227,9 +227,9 @@ static void __init bootmem_init_one_node(unsigned int nid) | |||
227 | */ | 227 | */ |
228 | if (nid == 0) { | 228 | if (nid == 0) { |
229 | /* Reserve the sections we're already using. */ | 229 | /* Reserve the sections we're already using. */ |
230 | for (i = 0; i < lmb.reserved.cnt; i++) | 230 | for (i = 0; i < memblock.reserved.cnt; i++) |
231 | reserve_bootmem(lmb.reserved.region[i].base, | 231 | reserve_bootmem(memblock.reserved.region[i].base, |
232 | lmb_size_bytes(&lmb.reserved, i), | 232 | memblock_size_bytes(&memblock.reserved, i), |
233 | BOOTMEM_DEFAULT); | 233 | BOOTMEM_DEFAULT); |
234 | } | 234 | } |
235 | 235 | ||
@@ -241,10 +241,10 @@ static void __init do_init_bootmem(void) | |||
241 | int i; | 241 | int i; |
242 | 242 | ||
243 | /* Add active regions with valid PFNs. */ | 243 | /* Add active regions with valid PFNs. */ |
244 | for (i = 0; i < lmb.memory.cnt; i++) { | 244 | for (i = 0; i < memblock.memory.cnt; i++) { |
245 | unsigned long start_pfn, end_pfn; | 245 | unsigned long start_pfn, end_pfn; |
246 | start_pfn = lmb.memory.region[i].base >> PAGE_SHIFT; | 246 | start_pfn = memblock.memory.region[i].base >> PAGE_SHIFT; |
247 | end_pfn = start_pfn + lmb_size_pages(&lmb.memory, i); | 247 | end_pfn = start_pfn + memblock_size_pages(&memblock.memory, i); |
248 | __add_active_range(0, start_pfn, end_pfn); | 248 | __add_active_range(0, start_pfn, end_pfn); |
249 | } | 249 | } |
250 | 250 | ||
@@ -276,7 +276,7 @@ static void __init early_reserve_mem(void) | |||
276 | * this catches the (definitely buggy) case of us accidentally | 276 | * this catches the (definitely buggy) case of us accidentally |
277 | * initializing the bootmem allocator with an invalid RAM area. | 277 | * initializing the bootmem allocator with an invalid RAM area. |
278 | */ | 278 | */ |
279 | lmb_reserve(__MEMORY_START + CONFIG_ZERO_PAGE_OFFSET, | 279 | memblock_reserve(__MEMORY_START + CONFIG_ZERO_PAGE_OFFSET, |
280 | (PFN_PHYS(start_pfn) + PAGE_SIZE - 1) - | 280 | (PFN_PHYS(start_pfn) + PAGE_SIZE - 1) - |
281 | (__MEMORY_START + CONFIG_ZERO_PAGE_OFFSET)); | 281 | (__MEMORY_START + CONFIG_ZERO_PAGE_OFFSET)); |
282 | 282 | ||
@@ -284,7 +284,7 @@ static void __init early_reserve_mem(void) | |||
284 | * Reserve physical pages below CONFIG_ZERO_PAGE_OFFSET. | 284 | * Reserve physical pages below CONFIG_ZERO_PAGE_OFFSET. |
285 | */ | 285 | */ |
286 | if (CONFIG_ZERO_PAGE_OFFSET != 0) | 286 | if (CONFIG_ZERO_PAGE_OFFSET != 0) |
287 | lmb_reserve(__MEMORY_START, CONFIG_ZERO_PAGE_OFFSET); | 287 | memblock_reserve(__MEMORY_START, CONFIG_ZERO_PAGE_OFFSET); |
288 | 288 | ||
289 | /* | 289 | /* |
290 | * Handle additional early reservations | 290 | * Handle additional early reservations |
@@ -299,27 +299,27 @@ void __init paging_init(void) | |||
299 | unsigned long vaddr, end; | 299 | unsigned long vaddr, end; |
300 | int nid; | 300 | int nid; |
301 | 301 | ||
302 | lmb_init(); | 302 | memblock_init(); |
303 | 303 | ||
304 | sh_mv.mv_mem_init(); | 304 | sh_mv.mv_mem_init(); |
305 | 305 | ||
306 | early_reserve_mem(); | 306 | early_reserve_mem(); |
307 | 307 | ||
308 | lmb_enforce_memory_limit(memory_limit); | 308 | memblock_enforce_memory_limit(memory_limit); |
309 | lmb_analyze(); | 309 | memblock_analyze(); |
310 | 310 | ||
311 | lmb_dump_all(); | 311 | memblock_dump_all(); |
312 | 312 | ||
313 | /* | 313 | /* |
314 | * Determine low and high memory ranges: | 314 | * Determine low and high memory ranges: |
315 | */ | 315 | */ |
316 | max_low_pfn = max_pfn = lmb_end_of_DRAM() >> PAGE_SHIFT; | 316 | max_low_pfn = max_pfn = memblock_end_of_DRAM() >> PAGE_SHIFT; |
317 | min_low_pfn = __MEMORY_START >> PAGE_SHIFT; | 317 | min_low_pfn = __MEMORY_START >> PAGE_SHIFT; |
318 | 318 | ||
319 | nodes_clear(node_online_map); | 319 | nodes_clear(node_online_map); |
320 | 320 | ||
321 | memory_start = (unsigned long)__va(__MEMORY_START); | 321 | memory_start = (unsigned long)__va(__MEMORY_START); |
322 | memory_end = memory_start + (memory_limit ?: lmb_phys_mem_size()); | 322 | memory_end = memory_start + (memory_limit ?: memblock_phys_mem_size()); |
323 | 323 | ||
324 | uncached_init(); | 324 | uncached_init(); |
325 | pmb_init(); | 325 | pmb_init(); |
diff --git a/arch/sh/mm/numa.c b/arch/sh/mm/numa.c index a2e645f64a37..3d85225b9e95 100644 --- a/arch/sh/mm/numa.c +++ b/arch/sh/mm/numa.c | |||
@@ -9,7 +9,7 @@ | |||
9 | */ | 9 | */ |
10 | #include <linux/module.h> | 10 | #include <linux/module.h> |
11 | #include <linux/bootmem.h> | 11 | #include <linux/bootmem.h> |
12 | #include <linux/lmb.h> | 12 | #include <linux/memblock.h> |
13 | #include <linux/mm.h> | 13 | #include <linux/mm.h> |
14 | #include <linux/numa.h> | 14 | #include <linux/numa.h> |
15 | #include <linux/pfn.h> | 15 | #include <linux/pfn.h> |
@@ -39,12 +39,12 @@ void __init setup_bootmem_node(int nid, unsigned long start, unsigned long end) | |||
39 | pmb_bolt_mapping((unsigned long)__va(start), start, end - start, | 39 | pmb_bolt_mapping((unsigned long)__va(start), start, end - start, |
40 | PAGE_KERNEL); | 40 | PAGE_KERNEL); |
41 | 41 | ||
42 | lmb_add(start, end - start); | 42 | memblock_add(start, end - start); |
43 | 43 | ||
44 | __add_active_range(nid, start_pfn, end_pfn); | 44 | __add_active_range(nid, start_pfn, end_pfn); |
45 | 45 | ||
46 | /* Node-local pgdat */ | 46 | /* Node-local pgdat */ |
47 | NODE_DATA(nid) = __va(lmb_alloc_base(sizeof(struct pglist_data), | 47 | NODE_DATA(nid) = __va(memblock_alloc_base(sizeof(struct pglist_data), |
48 | SMP_CACHE_BYTES, end)); | 48 | SMP_CACHE_BYTES, end)); |
49 | memset(NODE_DATA(nid), 0, sizeof(struct pglist_data)); | 49 | memset(NODE_DATA(nid), 0, sizeof(struct pglist_data)); |
50 | 50 | ||
@@ -54,7 +54,7 @@ void __init setup_bootmem_node(int nid, unsigned long start, unsigned long end) | |||
54 | 54 | ||
55 | /* Node-local bootmap */ | 55 | /* Node-local bootmap */ |
56 | bootmap_pages = bootmem_bootmap_pages(end_pfn - start_pfn); | 56 | bootmap_pages = bootmem_bootmap_pages(end_pfn - start_pfn); |
57 | bootmem_paddr = lmb_alloc_base(bootmap_pages << PAGE_SHIFT, | 57 | bootmem_paddr = memblock_alloc_base(bootmap_pages << PAGE_SHIFT, |
58 | PAGE_SIZE, end); | 58 | PAGE_SIZE, end); |
59 | init_bootmem_node(NODE_DATA(nid), bootmem_paddr >> PAGE_SHIFT, | 59 | init_bootmem_node(NODE_DATA(nid), bootmem_paddr >> PAGE_SHIFT, |
60 | start_pfn, end_pfn); | 60 | start_pfn, end_pfn); |
diff --git a/arch/sh/mm/pmb.c b/arch/sh/mm/pmb.c index 18623ba751b3..6379091a1647 100644 --- a/arch/sh/mm/pmb.c +++ b/arch/sh/mm/pmb.c | |||
@@ -770,7 +770,7 @@ static void __init pmb_resize(void) | |||
770 | spin_unlock_irqrestore(&pmbe->lock, flags); | 770 | spin_unlock_irqrestore(&pmbe->lock, flags); |
771 | } | 771 | } |
772 | 772 | ||
773 | read_lock(&pmb_rwlock); | 773 | read_unlock(&pmb_rwlock); |
774 | } | 774 | } |
775 | #endif | 775 | #endif |
776 | 776 | ||