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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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






[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux