]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Fix PKMAP with 32-bit MIPS huge page support
authorWei Li <liwei391@huawei.com>
Tue, 29 Jun 2021 14:14:20 +0000 (22:14 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Wed, 30 Jun 2021 12:41:32 +0000 (14:41 +0200)
commit5e4fe902e5613173c572861367eb630624954e0d
tree87a94ccc023f08824e4154b7e870dfa984c8cb28
parenta3e901ac34bfe6714a9e6343e7fc292ea8540c92
MIPS: Fix PKMAP with 32-bit MIPS huge page support

When 32-bit MIPS huge page support is enabled, we halve the number of
pointers a PTE page holds, making its last half go to waste.
Correspondingly, we should halve the number of kmap entries, as we just
initialized only a single pte table for that in pagetable_init().

Fixes: fede0deadfd9 ("MIPS: Add partial 32-bit huge page support")
Signed-off-by: Wei Li <liwei391@huawei.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/include/asm/highmem.h