From: Jack Tan Date: Tue, 23 Sep 2008 14:52:34 +0000 (+0800) Subject: [MIPS] Fixe the definition of PTRS_PER_PGD X-Git-Tag: v2.6.27-rc8~22^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5291925a9a65ea334f6e887d0f01dd119b8e2b2e;p=pandora-kernel.git [MIPS] Fixe the definition of PTRS_PER_PGD When we use > 4KB's page size the original definition is not consistent with PGDIR_SIZE. For exeample, if we use 16KB page size the PGDIR_SHIFT is (14-2) + 14 = 26, PGDIR_SIZE is 2^26,so the PTRS_PER_PGD should be: 2^32/2^26 = 2^6 but the original definition of PTRS_PER_PGD is 4096 (PGDIR_ORDER = 0). So, this definition needs to be consistent with the PGDIR_SIZE. And the new definition is consistent with the PGD init in pagetable_init(). Signed-off-by: Dajie Tan Signed-off-by: Ralf Baechle --- Reading git-diff-tree failed