aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2007-07-20 21:39:45 +0200
committerArnd Bergmann <arnd@klappe.arndb.de>2007-07-20 21:42:12 +0200
commit9d92af621f193c1c889ac8b6fd8c987ccd8aae1f (patch)
tree569ea7f80335c5833563999889c769edb7b2c6fc /include
parent[CELL] cell: add per BE structure with info about its SPUs (diff)
downloadlinux-dev-9d92af621f193c1c889ac8b6fd8c987ccd8aae1f.tar.xz
linux-dev-9d92af621f193c1c889ac8b6fd8c987ccd8aae1f.zip
[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 'include')
-rw-r--r--include/asm-powerpc/spu.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asm-powerpc/spu.h b/include/asm-powerpc/spu.h
index 2f2fe9f1c097..18e558bef98e 100644
--- a/include/asm-powerpc/spu.h
+++ b/include/asm-powerpc/spu.h
@@ -166,6 +166,9 @@ struct spu {
struct sys_device sysdev;
+ int has_mem_affinity;
+ struct list_head aff_list;
+
struct {
/* protected by interrupt reentrancy */
enum spu_utilization_state util_state;