Re: [PATCH v2 2/4 RESEND] MIPS: Loongson64: Clean up numa.c

2020-10-12 Thread Thomas Bogendoerfer
On Sun, Oct 11, 2020 at 07:47:52AM +0800, Tiezhu Yang wrote: > (1) Replace nid_to_addroffset() with nid_to_addrbase() and then remove the > related useless code. > > (2) Since end_pfn = start_pfn + node_psize, use "node_psize" instead of > "end_pfn - start_pfn" to avoid the redundant calculation.

[PATCH v2 2/4 RESEND] MIPS: Loongson64: Clean up numa.c

2020-10-10 Thread Tiezhu Yang
(1) Replace nid_to_addroffset() with nid_to_addrbase() and then remove the related useless code. (2) Since end_pfn = start_pfn + node_psize, use "node_psize" instead of "end_pfn - start_pfn" to avoid the redundant calculation. (3) After commit 6fbde6b492df ("MIPS: Loongson64: Move files to the