summaryrefslogtreecommitdiff
path: root/arch/powerpc/platforms/cell
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2007-07-20 19:39:45 (GMT)
committerArnd Bergmann <arnd@klappe.arndb.de>2007-07-20 19:42:12 (GMT)
commit9d92af621f193c1c889ac8b6fd8c987ccd8aae1f (patch)
tree569ea7f80335c5833563999889c769edb7b2c6fc /arch/powerpc/platforms/cell
parentaa6d5b20254a21b69092dd839b70ee148303ef25 (diff)
downloadlinux-fsl-qoriq-9d92af621f193c1c889ac8b6fd8c987ccd8aae1f.tar.xz
[CELL] cell: add vicinity information on spus
This patch adds affinity data to each spu instance. A doubly linked list is created, meant to connect the spus in the physical order they are placed in the BE. SPUs near to memory should be marked as having memory affinity. Adjustments of the fields acording to FW properties is done in separate patches, one for CPBW, one for Malta (patch for Malta under testing). Signed-off-by: Andre Detsch <adetsch@br.ibm.com> Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Diffstat (limited to 'arch/powerpc/platforms/cell')
-rw-r--r--arch/powerpc/platforms/cell/spu_base.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/cell/spu_base.c b/arch/powerpc/platforms/cell/spu_base.c
index dd632e5..0fc2e12 100644
--- a/arch/powerpc/platforms/cell/spu_base.c
+++ b/arch/powerpc/platforms/cell/spu_base.c
@@ -593,6 +593,8 @@ static int __init create_spu(void *data)
ktime_get_ts(&ts);
spu->stats.tstamp = timespec_to_ns(&ts);
+ INIT_LIST_HEAD(&spu->aff_list);
+
goto out;
out_free_irqs: