]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Expose TSCR via sysfs
authorAnton Blanchard <anton@samba.org>
Thu, 7 Sep 2017 17:11:12 +0000 (03:11 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 21 Jan 2018 18:48:36 +0000 (05:48 +1100)
commitcbfe61cb2a0f1c3bfc37b923534af2b69f395f05
tree5dec89635915a9a52d2b76d4a5888994181e7da3
parent1272ed0c8ab9b49b3c945574c46aa5acc574c635
powerpc: Expose TSCR via sysfs

The thread switch control register (TSCR) is a per core register
that configures how the CPU shares resources between SMT threads.

Exposing it via sysfs allows us to tune it at run time.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/sysfs.c