diff options
Diffstat (limited to 'include/asm-powerpc/spu.h')
-rw-r--r-- | include/asm-powerpc/spu.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/asm-powerpc/spu.h b/include/asm-powerpc/spu.h index 83b6dae48efc..e73ea00efd8b 100644 --- a/include/asm-powerpc/spu.h +++ b/include/asm-powerpc/spu.h | |||
@@ -201,6 +201,24 @@ static inline void unregister_spu_syscalls(struct spufs_calls *calls) | |||
201 | 201 | ||
202 | 202 | ||
203 | /* | 203 | /* |
204 | * Notifier blocks: | ||
205 | * | ||
206 | * oprofile can get notified when a context switch is performed | ||
207 | * on an spe. The notifer function that gets called is passed | ||
208 | * a pointer to the SPU structure as well as the object-id that | ||
209 | * identifies the binary running on that SPU now. | ||
210 | * | ||
211 | * For a context save, the object-id that is passed is zero, | ||
212 | * identifying that the kernel will run from that moment on. | ||
213 | * | ||
214 | * For a context restore, the object-id is the value written | ||
215 | * to object-id spufs file from user space and the notifer | ||
216 | * function can assume that spu->ctx is valid. | ||
217 | */ | ||
218 | int spu_switch_event_register(struct notifier_block * n); | ||
219 | int spu_switch_event_unregister(struct notifier_block * n); | ||
220 | |||
221 | /* | ||
204 | * This defines the Local Store, Problem Area and Privlege Area of an SPU. | 222 | * This defines the Local Store, Problem Area and Privlege Area of an SPU. |
205 | */ | 223 | */ |
206 | 224 | ||