]> 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)
commit9d7f97fab09cbd61eb8ba37c4d515e8188639acf
treea378b5000a917cdc4d572c917f3d4cb30da83d92
parent0357c4872e95dfa321299c491e3e810538bc9849
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