]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/kernel: Initialize load_tm on task creation
authorBreno Leitao <leitao@debian.org>
Mon, 5 Jun 2017 14:40:59 +0000 (11:40 -0300)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 6 Jun 2017 09:09:22 +0000 (19:09 +1000)
commite08491c6beac38ab214eb203c0cee0bcccc60d51
treea722f41f455bc5c04a6c42beff4a796d863f4b20
parentfabdfdadb857d425c4a0cf9156d7ab0740b1c1d7
powerpc/kernel: Initialize load_tm on task creation

Currently tsk->thread.load_tm is not initialized in the task creation
and can contain garbage on a new task.

This is an undesired behaviour, since it affects the timing to enable
and disable the transactional memory laziness (disabling and enabling
the MSR TM bit, which affects TM reclaim and recheckpoint in the
scheduling process).

Fixes: b3cb2fc5e72d ("powerpc: tm: Enable transactional memory (TM) lazily for userspace")
Cc: stable@vger.kernel.org # v4.9+
Signed-off-by: Breno Leitao <leitao@debian.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/process.c