[POWERPC] spufs: Implement /proc/spu_loadavg
authorChristoph Hellwig <hch@lst.de>
Fri, 29 Jun 2007 00:58:02 +0000 (10:58 +1000)
committerPaul Mackerras <paulus@samba.org>
Tue, 3 Jul 2007 05:24:46 +0000 (15:24 +1000)
commit65de66f0b8bcb7431d9df82cf32b002062b3a611
treea81eef8195d7f2f1c8c0ad110577b1ca92999c7e
parent476273adc7277333aed9963bc4dc9b39066d3038
[POWERPC] spufs: Implement /proc/spu_loadavg

Provide load average information for spu context.  The format
is identical to /proc/loadavg, which is also where a lot of code
and concepts is borrowed from.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/cell/spufs/context.c
arch/powerpc/platforms/cell/spufs/sched.c
arch/powerpc/platforms/cell/spufs/spufs.h