Commit:     9d92af621f193c1c889ac8b6fd8c987ccd8aae1f
Parent:     aa6d5b20254a21b69092dd839b70ee148303ef25
Author:     Arnd Bergmann <[EMAIL PROTECTED]>
AuthorDate: Fri Jul 20 21:39:45 2007 +0200
Committer:  Arnd Bergmann <[EMAIL PROTECTED]>
CommitDate: Fri Jul 20 21:42:12 2007 +0200

    [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 <[EMAIL PROTECTED]>
    Signed-off-by: Arnd Bergmann <[EMAIL PROTECTED]>
 arch/powerpc/platforms/cell/spu_base.c |    2 ++
 include/asm-powerpc/spu.h              |    3 +++
 2 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/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)
        spu->stats.tstamp = timespec_to_ns(&ts);
+       INIT_LIST_HEAD(&spu->aff_list);
        goto out;
diff --git a/include/asm-powerpc/spu.h b/include/asm-powerpc/spu.h
index 2f2fe9f..18e558b 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;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to