]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Always enable queued spinlocks for 64s, disable for others
authorNicholas Piggin <npiggin@gmail.com>
Mon, 18 Jan 2021 12:34:51 +0000 (22:34 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 30 Jan 2021 00:39:32 +0000 (11:39 +1100)
commitd203b81d209b343a85b4772a9ce357950ea5bb64
treea378b5000a917cdc4d572c917f3d4cb30da83d92
parent81d3b94f782411bb437f5208686c78dbe9144398
powerpc: Always enable queued spinlocks for 64s, disable for others

Queued spinlocks have shown to have good performance and fairness
properties even on smaller (2 socket) POWER systems. This selects them
automatically for 64s. For other platforms they are de-selected, the
standard spinlock is far simpler and smaller code, and single chips
with a handful of cores is unlikely to show any improvement.

CONFIG_EXPERT still allows this to be changed, e.g., to help debug
performance or correctness issues.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210118123451.1452206-1-npiggin@gmail.com
arch/powerpc/Kconfig