]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm: cleanup remaining ifdef mess in hugetlbpage.c
authorChristophe Leroy <christophe.leroy@c-s.fr>
Fri, 26 Apr 2019 05:59:49 +0000 (05:59 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 2 May 2019 15:20:24 +0000 (01:20 +1000)
commitbeb874a8102c97f3024018d0f7a2f7f5c88524b6
tree8232cee8a5d76eeb0166ff226a25baa13ef2ae87
parent0b56426483e525ccce4f49eb12bbcc0b4ff0849c
powerpc/mm: cleanup remaining ifdef mess in hugetlbpage.c

Only 3 subarches support huge pages. So when it is either 2 of them,
it is not the third one.

And mmu_has_feature() is known by all subarches so IS_ENABLED() can
be used instead of #ifdef

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/hugetlbpage.c