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/cris | |
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/cris')
-rw-r--r-- | arch/cris/include/asm/page.h | 1 | ||||
-rw-r--r-- | arch/cris/mm/init.c | 37 |
2 files changed, 4 insertions, 34 deletions
diff --git a/arch/cris/include/asm/page.h b/arch/cris/include/asm/page.h index be45ee366be9..dfc53f9b88ec 100644 --- a/arch/cris/include/asm/page.h +++ b/arch/cris/include/asm/page.h | |||
@@ -51,7 +51,6 @@ typedef struct page *pgtable_t; | |||
51 | */ | 51 | */ |
52 | 52 | ||
53 | #define virt_to_page(kaddr) (mem_map + (((unsigned long)(kaddr) - PAGE_OFFSET) >> PAGE_SHIFT)) | 53 | #define virt_to_page(kaddr) (mem_map + (((unsigned long)(kaddr) - PAGE_OFFSET) >> PAGE_SHIFT)) |
54 | #define VALID_PAGE(page) (((page) - mem_map) < max_mapnr) | ||
55 | #define virt_addr_valid(kaddr) pfn_valid((unsigned)(kaddr) >> PAGE_SHIFT) | 54 | #define virt_addr_valid(kaddr) pfn_valid((unsigned)(kaddr) >> PAGE_SHIFT) |
56 | 55 | ||
57 | /* convert a page (based on mem_map and forward) to a physical address | 56 | /* convert a page (based on mem_map and forward) to a physical address |
diff --git a/arch/cris/mm/init.c b/arch/cris/mm/init.c index 9ac80946dada..c81af5bd9167 100644 --- a/arch/cris/mm/init.c +++ b/arch/cris/mm/init.c | |||
@@ -19,9 +19,6 @@ unsigned long empty_zero_page; | |||
19 | void __init | 19 | void __init |
20 | mem_init(void) | 20 | mem_init(void) |
21 | { | 21 | { |
22 | int codesize, reservedpages, datasize, initsize; | ||
23 | unsigned long tmp; | ||
24 | |||
25 | BUG_ON(!mem_map); | 22 | BUG_ON(!mem_map); |
26 | 23 | ||
27 | /* max/min_low_pfn was set by setup.c | 24 | /* max/min_low_pfn was set by setup.c |
@@ -29,35 +26,9 @@ mem_init(void) | |||
29 | * | 26 | * |
30 | * high_memory was also set in setup.c | 27 | * high_memory was also set in setup.c |
31 | */ | 28 | */ |
32 | 29 | max_mapnr = max_low_pfn - min_low_pfn; | |
33 | max_mapnr = num_physpages = max_low_pfn - min_low_pfn; | 30 | free_all_bootmem(); |
34 | 31 | mem_init_print_info(NULL); | |
35 | /* this will put all memory onto the freelists */ | ||
36 | totalram_pages = free_all_bootmem(); | ||
37 | |||
38 | reservedpages = 0; | ||
39 | for (tmp = 0; tmp < max_mapnr; tmp++) { | ||
40 | /* | ||
41 | * Only count reserved RAM pages | ||
42 | */ | ||
43 | if (PageReserved(mem_map + tmp)) | ||
44 | reservedpages++; | ||
45 | } | ||
46 | |||
47 | codesize = (unsigned long) &_etext - (unsigned long) &_stext; | ||
48 | datasize = (unsigned long) &_edata - (unsigned long) &_etext; | ||
49 | initsize = (unsigned long) &__init_end - (unsigned long) &__init_begin; | ||
50 | |||
51 | printk(KERN_INFO | ||
52 | "Memory: %luk/%luk available (%dk kernel code, %dk reserved, %dk data, " | ||
53 | "%dk init)\n" , | ||
54 | nr_free_pages() << (PAGE_SHIFT-10), | ||
55 | max_mapnr << (PAGE_SHIFT-10), | ||
56 | codesize >> 10, | ||
57 | reservedpages << (PAGE_SHIFT-10), | ||
58 | datasize >> 10, | ||
59 | initsize >> 10 | ||
60 | ); | ||
61 | } | 32 | } |
62 | 33 | ||
63 | /* free the pages occupied by initialization code */ | 34 | /* free the pages occupied by initialization code */ |
@@ -65,5 +36,5 @@ mem_init(void) | |||
65 | void | 36 | void |
66 | free_initmem(void) | 37 | free_initmem(void) |
67 | { | 38 | { |
68 | free_initmem_default(0); | 39 | free_initmem_default(-1); |
69 | } | 40 | } |