Skip to content

Commit c9f3401

Browse files
npigginmpe
authored andcommitted
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
1 parent 9dd31b1 commit c9f3401

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

arch/powerpc/Kconfig

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -505,18 +505,14 @@ config HOTPLUG_CPU
505505
Say N if you are unsure.
506506

507507
config PPC_QUEUED_SPINLOCKS
508-
bool "Queued spinlocks"
508+
bool "Queued spinlocks" if EXPERT
509509
depends on SMP
510+
default PPC_BOOK3S_64
510511
help
511512
Say Y here to use queued spinlocks which give better scalability and
512513
fairness on large SMP and NUMA systems without harming single threaded
513514
performance.
514515

515-
This option is currently experimental, the code is more complex and
516-
less tested so it defaults to "N" for the moment.
517-
518-
If unsure, say "N".
519-
520516
config ARCH_CPU_PROBE_RELEASE
521517
def_bool y
522518
depends on HOTPLUG_CPU

0 commit comments

Comments
 (0)