Skip to content

Commit bf3eac8

Browse files
committed
percpu-rwsem: kill CONFIG_PERCPU_RWSEM
Remove CONFIG_PERCPU_RWSEM, the next patch adds the unconditional user of percpu_rw_semaphore. Signed-off-by: Oleg Nesterov <oleg@redhat.com>
1 parent 55cc156 commit bf3eac8

4 files changed

Lines changed: 1 addition & 7 deletions

File tree

‎arch/Kconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ config KPROBES_ON_FTRACE
8787

8888
config UPROBES
8989
def_bool n
90-
select PERCPU_RWSEM
9190
help
9291
Uprobes is the user-space counterpart to kprobes: they
9392
enable instrumentation applications (such as 'perf probe')

‎init/Kconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,6 @@ config NUMA_BALANCING_DEFAULT_ENABLED
925925
menuconfig CGROUPS
926926
bool "Control Group support"
927927
select KERNFS
928-
select PERCPU_RWSEM
929928
help
930929
This option adds support for grouping sets of processes together, for
931930
use with process control subsystems such as Cpusets, CFS, memory

‎kernel/locking/Makefile‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
obj-y += mutex.o semaphore.o rwsem.o
2+
obj-y += mutex.o semaphore.o rwsem.o percpu-rwsem.o
33

44
ifdef CONFIG_FUNCTION_TRACER
55
CFLAGS_REMOVE_lockdep.o = $(CC_FLAGS_FTRACE)
@@ -25,6 +25,5 @@ obj-$(CONFIG_DEBUG_SPINLOCK) += spinlock.o
2525
obj-$(CONFIG_DEBUG_SPINLOCK) += spinlock_debug.o
2626
obj-$(CONFIG_RWSEM_GENERIC_SPINLOCK) += rwsem-spinlock.o
2727
obj-$(CONFIG_RWSEM_XCHGADD_ALGORITHM) += rwsem-xadd.o
28-
obj-$(CONFIG_PERCPU_RWSEM) += percpu-rwsem.o
2928
obj-$(CONFIG_QUEUED_RWLOCKS) += qrwlock.o
3029
obj-$(CONFIG_LOCK_TORTURE_TEST) += locktorture.o

‎lib/Kconfig‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,6 @@ config GENERIC_IO
5353
config STMP_DEVICE
5454
bool
5555

56-
config PERCPU_RWSEM
57-
bool
58-
5956
config ARCH_USE_CMPXCHG_LOCKREF
6057
bool
6158

0 commit comments

Comments
 (0)