powerpc/mm: Add early_[cpu|mmu]_has_feature()
authorMichael Ellerman <mpe@ellerman.id.au>
Wed, 27 Jul 2016 10:48:36 +0000 (20:48 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 1 Aug 2016 01:15:00 +0000 (11:15 +1000)
commita141cca3892bb391d17a73dae917ad51d40ff69a
tree63a5057ac076031298f8da2499a5ba7301cfcf1d
parentbab4c8de6289b4615c21ddf0400397d03ce1863c
powerpc/mm: Add early_[cpu|mmu]_has_feature()

In later patches, we will be switching CPU and MMU feature checks to
use static keys.

For checks in early boot before jump label is initialized we need a
variant of [cpu|mmu]_has_feature() that doesn't use jump labels.

So create those called, unimaginatively, early_[cpu|mmu]_has_feature().

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/cputable.h
arch/powerpc/include/asm/mmu.h