Skip to content

Commit

Permalink
[CELL] cell: add vicinity information on spus
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Arnd Bergmann authored and Arnd Bergmann committed Jul 20, 2007
1 parent aa6d5b2 commit 9d92af6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/powerpc/platforms/cell/spu_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions include/asm-powerpc/spu.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9d92af6

Please sign in to comment.