]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm: Add mask of possible MMU features
authorMichael Ellerman <mpe@ellerman.id.au>
Wed, 11 May 2016 05:30:47 +0000 (15:30 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 11 May 2016 11:46:02 +0000 (21:46 +1000)
commit4de5e51cc7d9579116bc8592963cc98b32c5d73e
tree86b5af2f3b9d2b42c89803e8301679f6c05b4feb
parentc843caf99663c9e4ec35dee09a447ab9dba5572a
powerpc/mm: Add mask of possible MMU features

Follow the example of the cpu feature code, and add a mask of possible
MMU features, MMU_FTRS_POSSIBLE.

This is used in mmu_has_feature(), which allows the possible mask to act
as a shortcut for any features that are not possible, but still allows
the feature bit itself to be defined.

We will use this in the next commit to allow MMU_FTR_RADIX checks to be
elided when MMU_FTR_RADIX is not possible.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/mmu.h