OSDN Git Service

powerpc/mm/hash64: Don't test for machine type to detect HEA special case
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 5 Jul 2016 05:03:56 +0000 (15:03 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 21 Jul 2016 08:58:25 +0000 (18:58 +1000)
commit2b4e3ad8f5790cae6e0356c5fc200588bd2c915c
tree46a2ab68994ac5bab35993dcd070f72737579a86
parent5556ecf5e9fa1c7bcc50d0aa74aec28f30d9590a
powerpc/mm/hash64: Don't test for machine type to detect HEA special case

Instead, check for FW_FEATURE_SPLPAR. This should be roughtly equivalent
as all pseries machiens that can have an HEA also support SPLPAR and
no other machine type does.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/hash_utils_64.c