summaryrefslogtreecommitdiff
path: root/arch/powerpc/kernel/prom.c
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2016-07-05 15:03:48 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2016-07-21 18:56:13 +1000
commit3808a88985b4f5f5e947c364debce4441a380fb8 (patch)
tree582685ef5045583e4112098e29a0f22a342e5a2b /arch/powerpc/kernel/prom.c
parentc40785ad305b32e9b0b5fbc888f1f5d57f29bf44 (diff)
powerpc: Move FW feature probing out of pseries probe()
We move the function itself to pseries/firmware.c and call it along with almost all other flat device-tree parsers from early_init_devtree() Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> [mpe: Move #ifdefs into the header by providing pseries_probe_fw_features()] Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/kernel/prom.c')
-rw-r--r--arch/powerpc/kernel/prom.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/prom.c b/arch/powerpc/kernel/prom.c
index 7a01113d525c..2bd1784e65b3 100644
--- a/arch/powerpc/kernel/prom.c
+++ b/arch/powerpc/kernel/prom.c
@@ -57,6 +57,7 @@
#include <asm/fadump.h>
#include <asm/debug.h>
#include <asm/epapr_hcalls.h>
+#include <asm/firmware.h>
#include <mm/mmu_decl.h>
@@ -755,6 +756,9 @@ void __init early_init_devtree(void *params)
#endif
epapr_paravirt_early_init();
+ /* Now try to figure out if we are running on LPAR and so on */
+ pseries_probe_fw_features();
+
DBG(" <- early_init_devtree()\n");
}