]> git.baikalelectronics.ru Git - kernel.git/commit
[POWERPC] spufs: fix order of sputrace thread IDs
authorJeremy Kerr <jk@ozlabs.org>
Mon, 25 Feb 2008 03:58:37 +0000 (14:58 +1100)
committerJeremy Kerr <jk@ozlabs.org>
Fri, 29 Feb 2008 04:00:08 +0000 (15:00 +1100)
commitebd43e26ccd34fbbe3bbc2edb7363773d448c87d
tree603fa0d0a3f24c2d190b9327bbf3eaa7c473b179
parent4e3eebf0642c6f6ee7a91648701650184348c10e
[POWERPC] spufs: fix order of sputrace thread IDs

Currently, we get the following output from sputrace:

[5.097935954] 1606: spufs_ps_nopfn__enter (thread = 1605, spu = -1)
[5.097958164] 1606: spufs_ps_nopfn__insert (thread = 1605, spu = 15)
[5.097973529] 1607: spufs_ps_nopfn__enter (thread = 1605, spu = -1)
[5.097989174] 1607: spufs_ps_nopfn__insert (thread = 1605, spu = 14)

Which leads me to believe that 160[67] is the current thread ID, and
1605 is the context backing the psmap.

However, the 'current' and 'owner' tids are reversed - the 'current'
tid is on the right. This change puts the current thread ID in the
left-hand column instead, and renames the right to 'ctxthread'.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
arch/powerpc/platforms/cell/spufs/sputrace.c