diff options
author | Christoph Hellwig <hch@lst.de> | 2007-06-29 04:58:01 +0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-07-03 09:24:45 +0400 |
commit | 476273adc7277333aed9963bc4dc9b39066d3038 (patch) | |
tree | c134d69a196296a744e2b1dd4720a490d275d37e /arch/powerpc/platforms/cell/spufs/spufs.h | |
parent | 7022543ee404880aab5c641e4983e237815edc35 (diff) | |
download | linux-476273adc7277333aed9963bc4dc9b39066d3038.tar.xz |
[POWERPC] spufs: Add tid file
The new tid file contains the ID of the thread currently running the
context, if any. This is used so that the new spu-top and spu-ps
tools can find the thread in /proc.
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 'arch/powerpc/platforms/cell/spufs/spufs.h')
-rw-r--r-- | arch/powerpc/platforms/cell/spufs/spufs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/cell/spufs/spufs.h b/arch/powerpc/platforms/cell/spufs/spufs.h index dab8858b6995..8ff16b4b6bd7 100644 --- a/arch/powerpc/platforms/cell/spufs/spufs.h +++ b/arch/powerpc/platforms/cell/spufs/spufs.h @@ -77,6 +77,9 @@ struct spu_context { struct list_head gang_list; struct spu_gang *gang; + /* owner thread */ + pid_t tid; + /* scheduler fields */ struct list_head rq; unsigned int time_slice; |