diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2008-12-01 06:53:07 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-12-01 06:53:07 -0500 |
commit | 37efe6427dd50e889473fb3c7fcec02dbbd098eb (patch) | |
tree | d5a6b3e6fbd5d60a1a145f5801002e96bcb9af9e /arch/arm/mm/init.c | |
parent | 112243034cec7c3ef0499fdebf39218714da453d (diff) |
[ARM] use asm/sections.h
Update to use the asm/sections.h header rather than declaring these
symbols ourselves. Change __data_start to _data to conform with the
naming found within asm/sections.h.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mm/init.c')
-rw-r--r-- | arch/arm/mm/init.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c index ab5c9abd5c34..34df4d9d03a6 100644 --- a/arch/arm/mm/init.c +++ b/arch/arm/mm/init.c | |||
@@ -17,6 +17,7 @@ | |||
17 | #include <linux/initrd.h> | 17 | #include <linux/initrd.h> |
18 | 18 | ||
19 | #include <asm/mach-types.h> | 19 | #include <asm/mach-types.h> |
20 | #include <asm/sections.h> | ||
20 | #include <asm/setup.h> | 21 | #include <asm/setup.h> |
21 | #include <asm/sizes.h> | 22 | #include <asm/sizes.h> |
22 | #include <asm/tlb.h> | 23 | #include <asm/tlb.h> |
@@ -129,7 +130,7 @@ find_bootmap_pfn(int node, struct meminfo *mi, unsigned int bootmap_pages) | |||
129 | { | 130 | { |
130 | unsigned int start_pfn, i, bootmap_pfn; | 131 | unsigned int start_pfn, i, bootmap_pfn; |
131 | 132 | ||
132 | start_pfn = PAGE_ALIGN(__pa(&_end)) >> PAGE_SHIFT; | 133 | start_pfn = PAGE_ALIGN(__pa(_end)) >> PAGE_SHIFT; |
133 | bootmap_pfn = 0; | 134 | bootmap_pfn = 0; |
134 | 135 | ||
135 | for_each_nodebank(i, mi, node) { | 136 | for_each_nodebank(i, mi, node) { |
@@ -515,9 +516,9 @@ void __init mem_init(void) | |||
515 | } | 516 | } |
516 | printk(" = %luMB total\n", num_physpages >> (20 - PAGE_SHIFT)); | 517 | printk(" = %luMB total\n", num_physpages >> (20 - PAGE_SHIFT)); |
517 | 518 | ||
518 | codesize = &_etext - &_text; | 519 | codesize = _etext - _text; |
519 | datasize = &_end - &__data_start; | 520 | datasize = _end - _data; |
520 | initsize = &__init_end - &__init_begin; | 521 | initsize = __init_end - __init_begin; |
521 | 522 | ||
522 | printk(KERN_NOTICE "Memory: %luKB available (%dK code, " | 523 | printk(KERN_NOTICE "Memory: %luKB available (%dK code, " |
523 | "%dK data, %dK init)\n", | 524 | "%dK data, %dK init)\n", |
@@ -538,8 +539,8 @@ void __init mem_init(void) | |||
538 | void free_initmem(void) | 539 | void free_initmem(void) |
539 | { | 540 | { |
540 | if (!machine_is_integrator() && !machine_is_cintegrator()) | 541 | if (!machine_is_integrator() && !machine_is_cintegrator()) |
541 | totalram_pages += free_area(__phys_to_pfn(__pa(&__init_begin)), | 542 | totalram_pages += free_area(__phys_to_pfn(__pa(__init_begin)), |
542 | __phys_to_pfn(__pa(&__init_end)), | 543 | __phys_to_pfn(__pa(__init_end)), |
543 | "init"); | 544 | "init"); |
544 | } | 545 | } |
545 | 546 | ||