powerpc/mm: Consolidate numa_enable check and min_common_depth check
authorAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Mon, 1 Jul 2019 14:36:26 +0000 (20:06 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 4 Jul 2019 14:27:33 +0000 (00:27 +1000)
commit495c2ff4c88108d1f7730dd0966d4f8b03f0046e
treeacf08e0d223362d207c22bc21a66c80cbbe9aeca
parentf52741c410cfb76582df21f02e4c062ee732b882
powerpc/mm: Consolidate numa_enable check and min_common_depth check

If we fail to parse min_common_depth from device tree we boot with
numa disabled. Reflect the same by updating numa_enabled variable
to false. Also, switch all min_common_depth failure check to
if (!numa_enabled) check.

This helps us to avoid checking for both in different code paths.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/numa.c