kernel_optimize_test/arch/powerpc/platforms
Arnd Bergmann 6263203ed6 [POWERPC] spufs: Add infrastructure needed for gang scheduling
Add the concept of a gang to spufs as a new type of object.
So far, this has no impact whatsover on scheduling, but makes
it possible to add that later.

A new type of object in spufs is now a spu_gang. It is created
with the spu_create system call with the flags argument set
to SPU_CREATE_GANG (0x2). Inside of a spu_gang, it
is then possible to create spu_context objects, which until
now was only possible at the root of spufs.

There is a new member in struct spu_context pointing to
the spu_gang it belongs to, if any. The spu_gang maintains
a list of spu_context structures that are its children.
This information can then be used in the scheduler in the
future.

There is still a bug that needs to be resolved in this
basic infrastructure regarding the order in which objects
are removed. When the spu_gang file descriptor is closed
before the spu_context descriptors, we leak the dentry
and inode for the gang. Any ideas how to cleanly solve
this are appreciated.

Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2006-10-05 09:21:01 +10:00
..
4xx
8xx
82xx POWERPC: mpc82xx merge: board-specific/platform stuff(resend) 2006-10-03 21:36:14 +04:00
83xx Merge master.kernel.org:/pub/scm/linux/kernel/git/davej/configh 2006-10-04 09:59:57 -07:00
85xx Remove all inclusions of <linux/config.h> 2006-10-04 03:38:54 -04:00
86xx Merge branch 'linux-2.6' 2006-09-14 07:07:18 +10:00
apus
cell [POWERPC] spufs: Add infrastructure needed for gang scheduling 2006-10-05 09:21:01 +10:00
chrp [POWERPC] chrp: Constify & voidify get_property() 2006-07-31 15:55:05 +10:00
embedded6xx Remove all inclusions of <linux/config.h> 2006-10-04 03:38:54 -04:00
iseries Merge branch 'master' of git://oak/home/sfr/kernels/iseries/work 2006-10-04 15:02:27 +10:00
maple [POWERPC] maple/pci iomem annotations 2006-09-26 15:41:02 +10:00
pasemi Remove all inclusions of <linux/config.h> 2006-10-04 03:38:54 -04:00
powermac [POWERPC] Get default baud rate in udbg_scc 2006-10-04 14:52:31 +10:00
prep
pseries [POWERPC] Fix a printk in pseries_mpic_init_IRQ 2006-10-04 14:52:35 +10:00
Makefile [POWERPC] powerpc: PA Semi PWRficient platform support 2006-09-13 18:39:53 +10:00