mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-04 02:25:58 +00:00

Add a "rw_lock" torture test to stress kernel rwlocks and their irq variant. Reader critical regions are 5x longer than writers. As such a similar ratio of lock acquisitions is seen in the statistics. In the case of massive contention, both hold the lock for 1/10 of a second. Signed-off-by: Davidlohr Bueso <dbueso@suse.de> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
7 lines
117 B
Plaintext
7 lines
117 B
Plaintext
CONFIG_SMP=y
|
|
CONFIG_NR_CPUS=4
|
|
CONFIG_HOTPLUG_CPU=y
|
|
CONFIG_PREEMPT_NONE=n
|
|
CONFIG_PREEMPT_VOLUNTARY=n
|
|
CONFIG_PREEMPT=y
|