]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/tm: Add commandline option to disable hardware transactional memory
authorCyril Bur <cyrilbur@gmail.com>
Thu, 12 Oct 2017 10:17:16 +0000 (21:17 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 20 Oct 2017 00:10:56 +0000 (11:10 +1100)
commit3e28e2d2f7813ccad03c2538c82947728cd8e3e8
tree20d106a019dbfbab1f1401d85a96704bc7b20579
parentfc619aeae5d643e3f62dc9cdbd1777eae1706730
powerpc/tm: Add commandline option to disable hardware transactional memory

Currently the kernel relies on firmware to inform it whether or not the
CPU supports HTM and as long as the kernel was built with
CONFIG_PPC_TRANSACTIONAL_MEM=y then it will allow userspace to make
use of the facility.

There may be situations where it would be advantageous for the kernel
to not allow userspace to use HTM, currently the only way to achieve
this is to recompile the kernel with CONFIG_PPC_TRANSACTIONAL_MEM=n.

This patch adds a simple commandline option so that HTM can be
disabled at boot time.

Signed-off-by: Cyril Bur <cyrilbur@gmail.com>
[mpe: Simplify to a bool, move to prom.c, put doco in the right place.
 Always disable, regardless of initial state, to avoid user confusion.]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Documentation/admin-guide/kernel-parameters.txt
arch/powerpc/kernel/prom.c