[PATCH 13/15] MIPS: malta: remove nonsense memory limit

From: Paul Burton
Date: Fri May 22 2015 - 11:55:38 EST


This cap of Malta memory size to 0x7fff0000 was added by commit
e6ca4e5bf114 "MIPS: malta: malta-memory: Add support for the 'ememsize'
variable" as part of support for EVA, with only the cryptic comment
"Last 64K for HIGHMEM arithmetics". However

- EVA is used to avoid highmem, both are not enabled at once which
makes the comment about highmem macros nonsensical.

- I can think of no good reason for it, and nor could anyone else I
asked.

So remove this memsize limit.

Signed-off-by: Paul Burton <paul.burton@xxxxxxxxxx>
---

arch/mips/mti-malta/malta-memory.c | 4 ----
1 file changed, 4 deletions(-)

diff --git a/arch/mips/mti-malta/malta-memory.c b/arch/mips/mti-malta/malta-memory.c
index 5660cd6..831f583 100644
--- a/arch/mips/mti-malta/malta-memory.c
+++ b/arch/mips/mti-malta/malta-memory.c
@@ -94,10 +94,6 @@ void __init fw_meminit(void)
else
memsize = physical_memsize;

- /* Last 64K for HIGHMEM arithmetics */
- if (memsize > 0x7fff0000)
- memsize = 0x7fff0000;
-
add_memory_region(PHYS_OFFSET, 0x00001000, BOOT_MEM_RESERVED);

/*
--
2.4.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/