summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt2016-07-05 07:04:01 +0200
committerMichael Ellerman2016-07-13 10:15:36 +0200
commit69a94d84c7efc7bc146b5a8d6f05f6ed6f2d4e8f (patch)
treea68155f57f542fe249c97eee044706fb4566215a
parentpowerpc: Move epapr_paravirt_early_init() to early_init_devtree() (diff)
downloadkernel-qcow2-linux-69a94d84c7efc7bc146b5a8d6f05f6ed6f2d4e8f.tar.gz
kernel-qcow2-linux-69a94d84c7efc7bc146b5a8d6f05f6ed6f2d4e8f.tar.xz
kernel-qcow2-linux-69a94d84c7efc7bc146b5a8d6f05f6ed6f2d4e8f.zip
powerpc/cell: Don't use flat device-tree after boot
Some bit of SPU code was using the FDT rather than the expanded device-tree. Fix it. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
-rw-r--r--arch/powerpc/platforms/cell/spu_manage.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/cell/spu_manage.c b/arch/powerpc/platforms/cell/spu_manage.c
index c3327f3d8cf7..21b4bfb97200 100644
--- a/arch/powerpc/platforms/cell/spu_manage.c
+++ b/arch/powerpc/platforms/cell/spu_manage.c
@@ -535,8 +535,7 @@ static int __init init_affinity(void)
if (of_has_vicinity()) {
init_affinity_fw();
} else {
- long root = of_get_flat_dt_root();
- if (of_flat_dt_is_compatible(root, "IBM,CPBW-1.0"))
+ if (of_machine_is_compatible("IBM,CPBW-1.0"))
init_affinity_qs20_harcoded();
else
printk("No affinity configuration found\n");