]> git.baikalelectronics.ru Git - kernel.git/commit
[CELL] oprofile: enable SPU switch notification to detect currently active SPU tasks
authorBob Nelson <rrnelson@linux.vnet.ibm.com>
Fri, 20 Jul 2007 19:39:52 +0000 (21:39 +0200)
committerArnd Bergmann <arnd@klappe.arndb.de>
Fri, 20 Jul 2007 19:42:20 +0000 (21:42 +0200)
commit6ddbd3986d7e4b7a98f99f31e7f6725f30b23d2b
tree2726a068ae0d4529ccde030136255abbd1b1e069
parent52d621ebd24f8a013113c71ecff66581bfc2e889
[CELL] oprofile: enable SPU switch notification to detect currently active SPU tasks

From: Maynard Johnson <mpjohn@us.ibm.com>

This patch adds to the capability of spu_switch_event_register so that
the caller is also notified of currently active SPU tasks.
Exports spu_switch_event_register and spu_switch_event_unregister so
that OProfile can get access to the notifications provided.

Signed-off-by: Maynard Johnson <mpjohn@us.ibm.com>
Signed-off-by: Carl Love <carll@us.ibm.com>
Signed-off-by: Bob Nelson <rrnelson@us.ibm.com>
Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Acked-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/cell/spufs/run.c
arch/powerpc/platforms/cell/spufs/sched.c
arch/powerpc/platforms/cell/spufs/spufs.h