summaryrefslogtreecommitdiff
path: root/arch/mips/include/asm/syscall.h
diff options
context:
space:
mode:
authorPaul Burton <paul.burton@mips.com>2018-11-12 22:18:01 +0000
committerPaul Burton <paul.burton@mips.com>2018-11-15 15:42:15 -0800
commit1229ace4a4a2e2c982a32fb075dc1bf95423924f (patch)
treed0e002986e4908a0a7fea38cb27d835800ea88b1 /arch/mips/include/asm/syscall.h
parent25517ed4e99b3be4244dfd61d1e5c753b09faf2c (diff)
MIPS: Loongson3,SGI-IP27: Simplify max_low_pfn calculation
Both the Loongson3 & SGI-IP27 platforms set max_low_pfn to the last available PFN describing memory. They both do it in paging_init() which is later than ideal since max_low_pfn is used before that function is called. Simplify both platforms to trivially initialize max_low_pfn using the end address of DRAM, and do it earlier in prom_meminit(). Signed-off-by: Paul Burton <paul.burton@mips.com> Suggested-by: Mike Rapoport <rppt@linux.ibm.com> Tested-by: Thomas Bogendoerfer <tbogendoerfer@suse.de> Patchwork: https://patchwork.linux-mips.org/patch/21104/ References: https://patchwork.linux-mips.org/patch/21031/ Cc: Huacai Chen <chenhc@lemote.com> Cc: Mike Rapoport <rppt@linux.ibm.com> Cc: Thomas Bogendoerfer <tbogendoerfer@suse.de> Cc: linux-mips@linux-mips.org
Diffstat (limited to 'arch/mips/include/asm/syscall.h')
0 files changed, 0 insertions, 0 deletions