]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
powerpc/mm/slice: Enhance for supporting PPC32
authorChristophe Leroy <christophe.leroy@c-s.fr>
Thu, 22 Feb 2018 14:27:24 +0000 (15:27 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Jun 2018 09:42:00 +0000 (11:42 +0200)
commit399e039634a4e77548aeef75e0f8ce210330f2b7
tree87192b86b99f4633b702abeb07500496e9c35949
parentb8b23e8926b3bf387f44f89083a16010eac744de
powerpc/mm/slice: Enhance for supporting PPC32

commit db3a528db41caaa6dfd4c64e9f5efb1c81a80467 upstream.

In preparation for the following patch which will fix an issue on
the 8xx by re-using the 'slices', this patch enhances the
'slices' implementation to support 32 bits CPUs.

On PPC32, the address space is limited to 4Gbytes, hence only the low
slices will be used.

The high slices use bitmaps. As bitmap functions are not prepared to
handle bitmaps of size 0, this patch ensures that bitmap functions
are called only when SLICE_NUM_HIGH is not nul.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/include/asm/nohash/32/slice.h [new file with mode: 0644]
arch/powerpc/include/asm/slice.h
arch/powerpc/mm/slice.c