diff options
author | Christoph Hellwig <hch@lst.de> | 2007-06-28 20:58:03 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-07-03 01:24:46 -0400 |
commit | e9f8a0b65ac716fd7974159240ce34bddea780b3 (patch) | |
tree | 70e9541861443fc378adc8cc924522e9eb73ab33 /include/asm-powerpc/spu.h | |
parent | 65de66f0b8bcb7431d9df82cf32b002062b3a611 (diff) |
[POWERPC] spufs: Add stat file to spufs
Export per-context statistics in spufs.
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>
Diffstat (limited to 'include/asm-powerpc/spu.h')
-rw-r--r-- | include/asm-powerpc/spu.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/asm-powerpc/spu.h b/include/asm-powerpc/spu.h index 5f894b61e2d4..5957fcdda04c 100644 --- a/include/asm-powerpc/spu.h +++ b/include/asm-powerpc/spu.h | |||
@@ -156,6 +156,12 @@ struct spu { | |||
156 | u64 shadow_int_mask_RW[3]; | 156 | u64 shadow_int_mask_RW[3]; |
157 | 157 | ||
158 | struct sys_device sysdev; | 158 | struct sys_device sysdev; |
159 | |||
160 | struct { | ||
161 | /* protected by interrupt reentrancy */ | ||
162 | unsigned long long slb_flt; | ||
163 | unsigned long long class2_intr; | ||
164 | } stats; | ||
159 | }; | 165 | }; |
160 | 166 | ||
161 | struct spu *spu_alloc(void); | 167 | struct spu *spu_alloc(void); |