]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Rely on generic definition of hugepd_t and is_hugepd when unused
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Wed, 7 Sep 2022 09:34:45 +0000 (11:34 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 26 Sep 2022 10:58:18 +0000 (20:58 +1000)
commitb8204a8d2402da3a447f78300857cffadf373be6
treebb75c5abf48f4e51f35375dc89f87a562b4633df
parentc0c577b5698cf4f23b201d7dc84c470d5e7d06d5
powerpc: Rely on generic definition of hugepd_t and is_hugepd when unused

CONFIG_ARCH_HAS_HUGEPD is used to tell core mm when huge page
directories are used.

When they are not used, no need to provide hugepd_t or is_hugepd(),
just rely on the core mm fallback definition.

For that, change core mm behaviour so that CONFIG_ARCH_HAS_HUGEPD
is used instead of indirect is_hugepd macro existence.

powerpc being the only user of huge page directories, there is no
impact on other architectures.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/da81462d93069bb90fe5e762dd3283a644318937.1662543243.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/page.h
arch/powerpc/include/asm/pgtable-be-types.h
arch/powerpc/include/asm/pgtable-types.h
include/linux/hugetlb.h