diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-03 20:12:13 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-03 20:12:13 -0400 |
commit | 7f0ef0267e20d62d45d527911a993b1e998f4968 (patch) | |
tree | de51abc7da5903f59d83e23937f22420164c9477 /arch/ia64 | |
parent | 862f0012549110d6f2586bf54b52ed4540cbff3a (diff) | |
parent | 9307c29524502c21f0e8a6d96d850b2f5bc0bd9a (diff) |
Merge branch 'akpm' (updates from Andrew Morton)
Merge first patch-bomb from Andrew Morton:
- various misc bits
- I'm been patchmonkeying ocfs2 for a while, as Joel and Mark have been
distracted. There has been quite a bit of activity.
- About half the MM queue
- Some backlight bits
- Various lib/ updates
- checkpatch updates
- zillions more little rtc patches
- ptrace
- signals
- exec
- procfs
- rapidio
- nbd
- aoe
- pps
- memstick
- tools/testing/selftests updates
* emailed patches from Andrew Morton <akpm@linux-foundation.org>: (445 commits)
tools/testing/selftests: don't assume the x bit is set on scripts
selftests: add .gitignore for kcmp
selftests: fix clean target in kcmp Makefile
selftests: add .gitignore for vm
selftests: add hugetlbfstest
self-test: fix make clean
selftests: exit 1 on failure
kernel/resource.c: remove the unneeded assignment in function __find_resource
aio: fix wrong comment in aio_complete()
drivers/w1/slaves/w1_ds2408.c: add magic sequence to disable P0 test mode
drivers/memstick/host/r592.c: convert to module_pci_driver
drivers/memstick/host/jmb38x_ms: convert to module_pci_driver
pps-gpio: add device-tree binding and support
drivers/pps/clients/pps-gpio.c: convert to module_platform_driver
drivers/pps/clients/pps-gpio.c: convert to devm_* helpers
drivers/parport/share.c: use kzalloc
Documentation/accounting/getdelays.c: avoid strncpy in accounting tool
aoe: update internal version number to v83
aoe: update copyright date
aoe: perform I/O completions in parallel
...
Diffstat (limited to 'arch/ia64')
-rw-r--r-- | arch/ia64/kernel/efi.c | 5 | ||||
-rw-r--r-- | arch/ia64/mm/contig.c | 11 | ||||
-rw-r--r-- | arch/ia64/mm/discontig.c | 3 | ||||
-rw-r--r-- | arch/ia64/mm/init.c | 41 |
4 files changed, 5 insertions, 55 deletions
diff --git a/arch/ia64/kernel/efi.c b/arch/ia64/kernel/efi.c index f034563aeae5..51bce594eb83 100644 --- a/arch/ia64/kernel/efi.c +++ b/arch/ia64/kernel/efi.c | |||
@@ -1116,11 +1116,6 @@ efi_memmap_init(u64 *s, u64 *e) | |||
1116 | if (!is_memory_available(md)) | 1116 | if (!is_memory_available(md)) |
1117 | continue; | 1117 | continue; |
1118 | 1118 | ||
1119 | #ifdef CONFIG_CRASH_DUMP | ||
1120 | /* saved_max_pfn should ignore max_addr= command line arg */ | ||
1121 | if (saved_max_pfn < (efi_md_end(md) >> PAGE_SHIFT)) | ||
1122 | saved_max_pfn = (efi_md_end(md) >> PAGE_SHIFT); | ||
1123 | #endif | ||
1124 | /* | 1119 | /* |
1125 | * Round ends inward to granule boundaries | 1120 | * Round ends inward to granule boundaries |
1126 | * Give trimmings to uncached allocator | 1121 | * Give trimmings to uncached allocator |
diff --git a/arch/ia64/mm/contig.c b/arch/ia64/mm/contig.c index 142c3b785944..da5237d636d6 100644 --- a/arch/ia64/mm/contig.c +++ b/arch/ia64/mm/contig.c | |||
@@ -294,14 +294,6 @@ find_memory (void) | |||
294 | alloc_per_cpu_data(); | 294 | alloc_per_cpu_data(); |
295 | } | 295 | } |
296 | 296 | ||
297 | static int count_pages(u64 start, u64 end, void *arg) | ||
298 | { | ||
299 | unsigned long *count = arg; | ||
300 | |||
301 | *count += (end - start) >> PAGE_SHIFT; | ||
302 | return 0; | ||
303 | } | ||
304 | |||
305 | /* | 297 | /* |
306 | * Set up the page tables. | 298 | * Set up the page tables. |
307 | */ | 299 | */ |
@@ -312,9 +304,6 @@ paging_init (void) | |||
312 | unsigned long max_dma; | 304 | unsigned long max_dma; |
313 | unsigned long max_zone_pfns[MAX_NR_ZONES]; | 305 | unsigned long max_zone_pfns[MAX_NR_ZONES]; |
314 | 306 | ||
315 | num_physpages = 0; | ||
316 | efi_memmap_walk(count_pages, &num_physpages); | ||
317 | |||
318 | memset(max_zone_pfns, 0, sizeof(max_zone_pfns)); | 307 | memset(max_zone_pfns, 0, sizeof(max_zone_pfns)); |
319 | #ifdef CONFIG_ZONE_DMA | 308 | #ifdef CONFIG_ZONE_DMA |
320 | max_dma = virt_to_phys((void *) MAX_DMA_ADDRESS) >> PAGE_SHIFT; | 309 | max_dma = virt_to_phys((void *) MAX_DMA_ADDRESS) >> PAGE_SHIFT; |
diff --git a/arch/ia64/mm/discontig.c b/arch/ia64/mm/discontig.c index 7253d83650bf..2de08f4d9930 100644 --- a/arch/ia64/mm/discontig.c +++ b/arch/ia64/mm/discontig.c | |||
@@ -37,7 +37,6 @@ struct early_node_data { | |||
37 | struct ia64_node_data *node_data; | 37 | struct ia64_node_data *node_data; |
38 | unsigned long pernode_addr; | 38 | unsigned long pernode_addr; |
39 | unsigned long pernode_size; | 39 | unsigned long pernode_size; |
40 | unsigned long num_physpages; | ||
41 | #ifdef CONFIG_ZONE_DMA | 40 | #ifdef CONFIG_ZONE_DMA |
42 | unsigned long num_dma_physpages; | 41 | unsigned long num_dma_physpages; |
43 | #endif | 42 | #endif |
@@ -732,7 +731,6 @@ static __init int count_node_pages(unsigned long start, unsigned long len, int n | |||
732 | { | 731 | { |
733 | unsigned long end = start + len; | 732 | unsigned long end = start + len; |
734 | 733 | ||
735 | mem_data[node].num_physpages += len >> PAGE_SHIFT; | ||
736 | #ifdef CONFIG_ZONE_DMA | 734 | #ifdef CONFIG_ZONE_DMA |
737 | if (start <= __pa(MAX_DMA_ADDRESS)) | 735 | if (start <= __pa(MAX_DMA_ADDRESS)) |
738 | mem_data[node].num_dma_physpages += | 736 | mem_data[node].num_dma_physpages += |
@@ -778,7 +776,6 @@ void __init paging_init(void) | |||
778 | #endif | 776 | #endif |
779 | 777 | ||
780 | for_each_online_node(node) { | 778 | for_each_online_node(node) { |
781 | num_physpages += mem_data[node].num_physpages; | ||
782 | pfn_offset = mem_data[node].min_pfn; | 779 | pfn_offset = mem_data[node].min_pfn; |
783 | 780 | ||
784 | #ifdef CONFIG_VIRTUAL_MEM_MAP | 781 | #ifdef CONFIG_VIRTUAL_MEM_MAP |
diff --git a/arch/ia64/mm/init.c b/arch/ia64/mm/init.c index d1fe4b402601..b6f7f43424ec 100644 --- a/arch/ia64/mm/init.c +++ b/arch/ia64/mm/init.c | |||
@@ -154,9 +154,8 @@ ia64_init_addr_space (void) | |||
154 | void | 154 | void |
155 | free_initmem (void) | 155 | free_initmem (void) |
156 | { | 156 | { |
157 | free_reserved_area((unsigned long)ia64_imva(__init_begin), | 157 | free_reserved_area(ia64_imva(__init_begin), ia64_imva(__init_end), |
158 | (unsigned long)ia64_imva(__init_end), | 158 | -1, "unused kernel"); |
159 | 0, "unused kernel"); | ||
160 | } | 159 | } |
161 | 160 | ||
162 | void __init | 161 | void __init |
@@ -546,19 +545,6 @@ int __init register_active_ranges(u64 start, u64 len, int nid) | |||
546 | return 0; | 545 | return 0; |
547 | } | 546 | } |
548 | 547 | ||
549 | static int __init | ||
550 | count_reserved_pages(u64 start, u64 end, void *arg) | ||
551 | { | ||
552 | unsigned long num_reserved = 0; | ||
553 | unsigned long *count = arg; | ||
554 | |||
555 | for (; start < end; start += PAGE_SIZE) | ||
556 | if (PageReserved(virt_to_page(start))) | ||
557 | ++num_reserved; | ||
558 | *count += num_reserved; | ||
559 | return 0; | ||
560 | } | ||
561 | |||
562 | int | 548 | int |
563 | find_max_min_low_pfn (u64 start, u64 end, void *arg) | 549 | find_max_min_low_pfn (u64 start, u64 end, void *arg) |
564 | { | 550 | { |
@@ -597,8 +583,6 @@ __setup("nolwsys", nolwsys_setup); | |||
597 | void __init | 583 | void __init |
598 | mem_init (void) | 584 | mem_init (void) |
599 | { | 585 | { |
600 | long reserved_pages, codesize, datasize, initsize; | ||
601 | pg_data_t *pgdat; | ||
602 | int i; | 586 | int i; |
603 | 587 | ||
604 | BUG_ON(PTRS_PER_PGD * sizeof(pgd_t) != PAGE_SIZE); | 588 | BUG_ON(PTRS_PER_PGD * sizeof(pgd_t) != PAGE_SIZE); |
@@ -616,27 +600,12 @@ mem_init (void) | |||
616 | 600 | ||
617 | #ifdef CONFIG_FLATMEM | 601 | #ifdef CONFIG_FLATMEM |
618 | BUG_ON(!mem_map); | 602 | BUG_ON(!mem_map); |
619 | max_mapnr = max_low_pfn; | ||
620 | #endif | 603 | #endif |
621 | 604 | ||
605 | set_max_mapnr(max_low_pfn); | ||
622 | high_memory = __va(max_low_pfn * PAGE_SIZE); | 606 | high_memory = __va(max_low_pfn * PAGE_SIZE); |
623 | 607 | free_all_bootmem(); | |
624 | for_each_online_pgdat(pgdat) | 608 | mem_init_print_info(NULL); |
625 | if (pgdat->bdata->node_bootmem_map) | ||
626 | totalram_pages += free_all_bootmem_node(pgdat); | ||
627 | |||
628 | reserved_pages = 0; | ||
629 | efi_memmap_walk(count_reserved_pages, &reserved_pages); | ||
630 | |||
631 | codesize = (unsigned long) _etext - (unsigned long) _stext; | ||
632 | datasize = (unsigned long) _edata - (unsigned long) _etext; | ||
633 | initsize = (unsigned long) __init_end - (unsigned long) __init_begin; | ||
634 | |||
635 | printk(KERN_INFO "Memory: %luk/%luk available (%luk code, %luk reserved, " | ||
636 | "%luk data, %luk init)\n", nr_free_pages() << (PAGE_SHIFT - 10), | ||
637 | num_physpages << (PAGE_SHIFT - 10), codesize >> 10, | ||
638 | reserved_pages << (PAGE_SHIFT - 10), datasize >> 10, initsize >> 10); | ||
639 | |||
640 | 609 | ||
641 | /* | 610 | /* |
642 | * For fsyscall entrpoints with no light-weight handler, use the ordinary | 611 | * For fsyscall entrpoints with no light-weight handler, use the ordinary |