ANDROID: qki: Add hidden config option for RCUTORTURE

Add hidden configuration for RCUTORTURE module so they can be
enabled through GKI_HIDDEN configurations required for some debug
related defconfigs.

Bug: 191628908
Change-Id: I3f0056fa22b01902ff2b0a6d2edae4fafbc8aa86
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
Signed-off-by: Huang Yiwei <quic_hyiwei@quicinc.com>
This commit is contained in:
Elliot Berman 2021-04-30 19:26:12 -07:00 committed by Huang Yiwei
parent 943727b7db
commit 14d004d5b5
3 changed files with 12 additions and 1 deletions

View File

@ -2023,3 +2023,4 @@ config ARCH_HAS_SYSCALL_WRAPPER
def_bool n def_bool n
source "init/Kconfig.gki" source "init/Kconfig.gki"
source "init/Kconfig.gki-debug"

9
init/Kconfig.gki-debug Normal file
View File

@ -0,0 +1,9 @@
config GKI_HIDDEN_RCUTORTURE
bool
select TASKS_RUDE_RCU
config GKI_HACKS_FOR_DEBUG_CONFIG
bool "GKI Dummy config options for debug configurations"
select TRACE_PREEMPT_TOGGLE
select TRACE_IRQFLAGS
select GKI_HIDDEN_RCUTORTURE

View File

@ -485,7 +485,8 @@ EXPORT_SYMBOL_GPL(do_trace_rcu_torture_read);
do { } while (0) do { } while (0)
#endif #endif
#if IS_ENABLED(CONFIG_RCU_TORTURE_TEST) || IS_MODULE(CONFIG_RCU_TORTURE_TEST) #if IS_ENABLED(CONFIG_RCU_TORTURE_TEST) || IS_MODULE(CONFIG_RCU_TORTURE_TEST) \
|| IS_ENABLED(CONFIG_GKI_HIDDEN_RCUTORTURE)
/* Get rcutorture access to sched_setaffinity(). */ /* Get rcutorture access to sched_setaffinity(). */
long rcutorture_sched_setaffinity(pid_t pid, const struct cpumask *in_mask) long rcutorture_sched_setaffinity(pid_t pid, const struct cpumask *in_mask)
{ {