Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

csky: Fixup pfn_valid error with wrong max_mapnr

The max_mapnr is the number of PFNs, not absolute PFN offset.
Using set_max_mapnr API instead of setting the value directly.

Signed-off-by: Guo Ren <guoren@linux.alibaba.com>

Guo Ren c47e1a1c 0d3b051a

+2 -2
+2 -2
arch/csky/mm/init.c
··· 86 86 #ifdef CONFIG_HIGHMEM 87 87 unsigned long tmp; 88 88 89 - max_mapnr = highend_pfn; 89 + set_max_mapnr(highend_pfn - ARCH_PFN_OFFSET); 90 90 #else 91 - max_mapnr = max_low_pfn; 91 + set_max_mapnr(max_low_pfn - ARCH_PFN_OFFSET); 92 92 #endif 93 93 high_memory = (void *) __va(max_low_pfn << PAGE_SHIFT); 94 94