powerpc/spufs: add atomic busy_spus counter to struct cbe_spu_info
authorMaxim Shchetynin <maxim@de.ibm.com>
Fri, 4 Jul 2008 19:05:39 +0000 (05:05 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 9 Jul 2008 06:30:42 +0000 (16:30 +1000)
commitfabb657005edbbcb0d13ee49a40f1f4b042a1d19
tree5f402e272ff2933c9e3fe9d6e0eeb10c166d7c2c
parent88b90c96b787ecb5c72384b6873468f814cce650
powerpc/spufs: add atomic busy_spus counter to struct cbe_spu_info

As nr_active counter includes also spus waiting for syscalls to return
we need a seperate counter that only counts spus that are currently running
on spu side. This counter shall be used by a cpufreq governor that targets
a frequency dependent from the number of running spus.

Signed-off-by: Christian Krafft <krafft@de.ibm.com>
Acked-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/cell/spufs/sched.c
include/asm-powerpc/spu.h