diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-10-27 18:14:56 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-10-28 13:54:41 +0100 |
commit | 7dc50ec7283391dd7a29a80e2a0fb76731a6a7c7 (patch) | |
tree | cfce6e8adf5c4a50ed04f390a7acf8f4d7d8b5df /arch/arm/mm/mmu.c | |
parent | c8c90860cd3592fac83a349f84a20360a6498727 (diff) | |
download | op-kernel-dev-7dc50ec7283391dd7a29a80e2a0fb76731a6a7c7.zip op-kernel-dev-7dc50ec7283391dd7a29a80e2a0fb76731a6a7c7.tar.gz |
ARM: ensure membank array is always sorted
This was missing from the noMMU code, so there was the possibility
of things not working as expected if out of order memory information
was passed.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mm/mmu.c')
-rw-r--r-- | arch/arm/mm/mmu.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c index 8e21b4e..5222d38 100644 --- a/arch/arm/mm/mmu.c +++ b/arch/arm/mm/mmu.c @@ -14,7 +14,6 @@ #include <linux/mman.h> #include <linux/nodemask.h> #include <linux/memblock.h> -#include <linux/sort.h> #include <linux/fs.h> #include <asm/cputype.h> @@ -1011,13 +1010,6 @@ static void __init map_lowmem(void) } } -static int __init meminfo_cmp(const void *_a, const void *_b) -{ - const struct membank *a = _a, *b = _b; - long cmp = bank_pfn_start(a) - bank_pfn_start(b); - return cmp < 0 ? -1 : cmp > 0 ? 1 : 0; -} - /* * paging_init() sets up the page tables, initialises the zone memory * maps, and sets up the zero page, bad page and bad page tables. @@ -1026,8 +1018,6 @@ void __init paging_init(struct machine_desc *mdesc) { void *zero_page; - sort(&meminfo.bank, meminfo.nr_banks, sizeof(meminfo.bank[0]), meminfo_cmp, NULL); - build_mem_type_table(); sanity_check_meminfo(); prepare_page_table(); |