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/score | |
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/score')
-rw-r--r-- | arch/score/kernel/vmlinux.lds.S | 1 | ||||
-rw-r--r-- | arch/score/mm/init.c | 31 |
2 files changed, 6 insertions, 26 deletions
diff --git a/arch/score/kernel/vmlinux.lds.S b/arch/score/kernel/vmlinux.lds.S index eebcbaa4e978..7274b5c4287e 100644 --- a/arch/score/kernel/vmlinux.lds.S +++ b/arch/score/kernel/vmlinux.lds.S | |||
@@ -49,6 +49,7 @@ SECTIONS | |||
49 | } | 49 | } |
50 | 50 | ||
51 | . = ALIGN(16); | 51 | . = ALIGN(16); |
52 | _sdata = .; /* Start of data section */ | ||
52 | RODATA | 53 | RODATA |
53 | 54 | ||
54 | EXCEPTION_TABLE(16) | 55 | EXCEPTION_TABLE(16) |
diff --git a/arch/score/mm/init.c b/arch/score/mm/init.c index 0940682ab38b..9fbce49ad3bd 100644 --- a/arch/score/mm/init.c +++ b/arch/score/mm/init.c | |||
@@ -75,40 +75,19 @@ void __init paging_init(void) | |||
75 | 75 | ||
76 | void __init mem_init(void) | 76 | void __init mem_init(void) |
77 | { | 77 | { |
78 | unsigned long codesize, reservedpages, datasize, initsize; | ||
79 | unsigned long tmp, ram = 0; | ||
80 | |||
81 | high_memory = (void *) __va(max_low_pfn << PAGE_SHIFT); | 78 | high_memory = (void *) __va(max_low_pfn << PAGE_SHIFT); |
82 | totalram_pages += free_all_bootmem(); | 79 | free_all_bootmem(); |
83 | setup_zero_page(); /* Setup zeroed pages. */ | 80 | setup_zero_page(); /* Setup zeroed pages. */ |
84 | reservedpages = 0; | 81 | |
85 | 82 | mem_init_print_info(NULL); | |
86 | for (tmp = 0; tmp < max_low_pfn; tmp++) | ||
87 | if (page_is_ram(tmp)) { | ||
88 | ram++; | ||
89 | if (PageReserved(pfn_to_page(tmp))) | ||
90 | reservedpages++; | ||
91 | } | ||
92 | |||
93 | num_physpages = ram; | ||
94 | codesize = (unsigned long) &_etext - (unsigned long) &_text; | ||
95 | datasize = (unsigned long) &_edata - (unsigned long) &_etext; | ||
96 | initsize = (unsigned long) &__init_end - (unsigned long) &__init_begin; | ||
97 | |||
98 | printk(KERN_INFO "Memory: %luk/%luk available (%ldk kernel code, " | ||
99 | "%ldk reserved, %ldk data, %ldk init, %ldk highmem)\n", | ||
100 | (unsigned long) nr_free_pages() << (PAGE_SHIFT-10), | ||
101 | ram << (PAGE_SHIFT-10), codesize >> 10, | ||
102 | reservedpages << (PAGE_SHIFT-10), datasize >> 10, | ||
103 | initsize >> 10, | ||
104 | totalhigh_pages << (PAGE_SHIFT-10)); | ||
105 | } | 83 | } |
106 | #endif /* !CONFIG_NEED_MULTIPLE_NODES */ | 84 | #endif /* !CONFIG_NEED_MULTIPLE_NODES */ |
107 | 85 | ||
108 | #ifdef CONFIG_BLK_DEV_INITRD | 86 | #ifdef CONFIG_BLK_DEV_INITRD |
109 | void free_initrd_mem(unsigned long start, unsigned long end) | 87 | void free_initrd_mem(unsigned long start, unsigned long end) |
110 | { | 88 | { |
111 | free_reserved_area(start, end, POISON_FREE_INITMEM, "initrd"); | 89 | free_reserved_area((void *)start, (void *)end, POISON_FREE_INITMEM, |
90 | "initrd"); | ||
112 | } | 91 | } |
113 | #endif | 92 | #endif |
114 | 93 | ||