]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/spufs: Initialize ctx->stats.tstamp correctly
authorArnd Bergmann <arnd@arndb.de>
Mon, 23 Feb 2009 21:44:37 +0000 (21:44 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 11 Mar 2009 06:10:15 +0000 (17:10 +1100)
commit893cce2c5dec85b04b960c4602e9420dbdaabe80
treea21c57dd939fea9e14a96731c1b4613cc81e9fa0
parent2bf3aac14046d3a288b6d9a522623ef7e3a1ecfd
powerpc/spufs: Initialize ctx->stats.tstamp correctly

spuctx_switch_state() warns if ktime goes backwards, but it
sometimes compares an uninitialized value, which showed that
the data was unreliable when we actually saw the warning.

Initialize it to the current time in order to get correct data.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/cell/spufs/context.c