diff options
author | Paul Burton <[email protected]> | 2018-11-12 22:18:01 +0000 |
---|---|---|
committer | Paul Burton <[email protected]> | 2018-11-15 15:42:15 -0800 |
commit | 1229ace4a4a2e2c982a32fb075dc1bf95423924f (patch) | |
tree | d0e002986e4908a0a7fea38cb27d835800ea88b1 /lib/zstd/zstd_internal.h | |
parent | 25517ed4e99b3be4244dfd61d1e5c753b09faf2c (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 <[email protected]>
Suggested-by: Mike Rapoport <[email protected]>
Tested-by: Thomas Bogendoerfer <[email protected]>
Patchwork: https://patchwork.linux-mips.org/patch/21104/
References: https://patchwork.linux-mips.org/patch/21031/
Cc: Huacai Chen <[email protected]>
Cc: Mike Rapoport <[email protected]>
Cc: Thomas Bogendoerfer <[email protected]>
Cc: [email protected]
Diffstat (limited to 'lib/zstd/zstd_internal.h')
0 files changed, 0 insertions, 0 deletions