Skip to content

Commit 900da4d

Browse files
paulmckrcuurezki
authored andcommitted
arch: Select new NEED_TASKS_RCU Kconfig option
Currently, if a Kconfig option depends on TASKS_RCU, it conditionally does "select TASKS_RCU if PREEMPTION". This works, but requires any change in this enablement logic to be replicated across all such "select" clauses. A new NEED_TASKS_RCU Kconfig option has been created to allow this enablement logic to be in one place in kernel/rcu/Kconfig. Therefore, select the new NEED_TASKS_RCU Kconfig option instead of the old TASKS_RCU option. Signed-off-by: Paul E. McKenney <paulmck@kernel.org> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Heiko Carstens <hca@linux.ibm.com> Cc: Arnd Bergmann <arnd@arndb.de> Cc: Douglas Anderson <dianders@chromium.org> Cc: Ankur Arora <ankur.a.arora@oracle.com> Acked-by: Mark Rutland <mark.rutland@arm.com> Reviewed-by: Steven Rostedt (Google) <rostedt@goodmis.org> Signed-off-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
1 parent b993115 commit 900da4d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

arch/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ config KPROBES
5555
depends on MODULES
5656
depends on HAVE_KPROBES
5757
select KALLSYMS
58-
select TASKS_RCU if PREEMPTION
58+
select NEED_TASKS_RCU
5959
help
6060
Kprobes allows you to trap at almost any kernel address and
6161
execute a callback function. register_kprobe() establishes
@@ -104,7 +104,7 @@ config STATIC_CALL_SELFTEST
104104
config OPTPROBES
105105
def_bool y
106106
depends on KPROBES && HAVE_OPTPROBES
107-
select TASKS_RCU if PREEMPTION
107+
select NEED_TASKS_RCU
108108

109109
config KPROBES_ON_FTRACE
110110
def_bool y

0 commit comments

Comments
 (0)