From: arnd@arndb.de Date: Mon, 19 Jun 2006 18:33:24 +0000 (+0200) Subject: [POWERPC] spufs: add a phys-id attribute to each SPU context X-Git-Tag: v2.6.18-rc1~1081^2~225^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b1a701480fb17b7f78b95b257bfc90a4f949d04;p=pandora-kernel.git [POWERPC] spufs: add a phys-id attribute to each SPU context For performance analysis, it is often interesting to know which physical SPE a thread is currently running on, and, more importantly, if it is running at all. This patch adds a simple attribute to each SPU directory with that information. The attribute is read-only and called 'phys-id'. It contains an ascii string with the number of the physical SPU (e.g. "0x5"), or alternatively the string "0xffffffff" (32 bit -1) when it is not running at all at the time that the file is read. Signed-off-by: Arnd Bergmann Signed-off-by: Paul Mackerras --- Reading git-diff-tree failed