• Arnd Bergmann's avatar
    [CELL] cell: add per BE structure with info about its SPUs · aa6d5b20
    Arnd Bergmann authored
    Addition of a spufs-global "cbe_info" array. Each entry contains information
    about one Cell/B.E. node, namelly:
    * list of spus (both free and busy spus are in this list);
    * list of free spus (replacing the static spu_list from spu_base.c)
    * number of spus;
    * number of reserved (non scheduleable) spus.
    
    SPE affinity implementation actually requires only access to one spu per
    BE node (since it implements its own pointer to walk through the other spus
    of the ring) and the number of scheduleable spus (n_spus - non_sched_spus)
    However having this more general structure can be useful for other
    functionalities, concentrating per-cbe statistics / data.
    Signed-off-by: default avatarAndre Detsch <adetsch@br.ibm.com>
    Signed-off-by: default avatarArnd Bergmann <arnd.bergmann@de.ibm.com>
    aa6d5b20
sched.c 20.2 KB