android_kernel_xiaomi_sm8350/arch/powerpc/platforms/cell/spufs
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
..
backing_ops.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
context.c [POWERPC] spufs: Add infrastructure needed for gang scheduling 2006-10-05 09:21:01 +10:00
file.c [POWERPC] spufs: cell spu problem state mapping updates 2006-10-05 09:21:00 +10:00
gang.c [POWERPC] spufs: Add infrastructure needed for gang scheduling 2006-10-05 09:21:01 +10:00
hw_ops.c [POWERPC] cell spufs iomem annotations 2006-09-26 15:25:33 +10:00
inode.c [POWERPC] spufs: Add infrastructure needed for gang scheduling 2006-10-05 09:21:01 +10:00
Makefile [POWERPC] spufs: Add infrastructure needed for gang scheduling 2006-10-05 09:21:01 +10:00
run.c [POWERPC] spufs: implement error event delivery to user space 2006-10-05 09:21:01 +10:00
sched.c [POWERPC] spufs: implement error event delivery to user space 2006-10-05 09:21:01 +10:00
spu_restore_crt0.S [PATCH] spufs: add spu-side context switch code 2006-01-09 14:49:25 +11:00
spu_restore_dump.h_shipped [POWERPC] spufs: one more fix for 64k pages 2006-06-21 15:01:32 +10:00
spu_restore.c [PATCH] spufs: add spu-side context switch code 2006-01-09 14:49:25 +11:00
spu_save_crt0.S [PATCH] spufs: add spu-side context switch code 2006-01-09 14:49:25 +11:00
spu_save_dump.h_shipped [POWERPC] spufs: one more fix for 64k pages 2006-06-21 15:01:32 +10:00
spu_save.c [PATCH] spufs: add spu-side context switch code 2006-01-09 14:49:25 +11:00
spu_utils.h [PATCH] spufs: add spu-side context switch code 2006-01-09 14:49:25 +11:00
spufs.h [POWERPC] spufs: Add infrastructure needed for gang scheduling 2006-10-05 09:21:01 +10:00
switch.c [POWERPC] spufs: fix context switch during page fault 2006-10-05 09:21:01 +10:00
syscalls.c [POWERPC] spufs: Add infrastructure needed for gang scheduling 2006-10-05 09:21:01 +10:00