Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b2e19b32 authored by Channagoud Kadabi's avatar Channagoud Kadabi Committed by Prasad Sodagudi
Browse files

kernel: rcu: Panic on RCU stall



Enable panic on RCU stalls if the RCU_PANIC_ON_STALL is enabled. This
helps collecting the cpu context for debugging.

Change-Id: Ibc95799df995bf31053152ab9b3894710fcd9f43
Signed-off-by: default avatarChannagoud Kadabi <ckadabi@codeaurora.org>
Signed-off-by: default avatarPrasad Sodagudi <psodagud@codeaurora.org>
parent 338bc8bf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -127,7 +127,7 @@ int rcu_num_lvls __read_mostly = RCU_NUM_LVLS;
int num_rcu_lvl[] = NUM_RCU_LVL_INIT;
int rcu_num_nodes __read_mostly = NUM_RCU_NODES; /* Total # rcu_nodes in use. */
/* panic() on RCU Stall sysctl. */
int sysctl_panic_on_rcu_stall __read_mostly;
int sysctl_panic_on_rcu_stall __read_mostly = CONFIG_RCU_PANIC_ON_STALL;

/*
 * The rcu_scheduler_active variable is initialized to the value
+12 −0
Original line number Diff line number Diff line
@@ -1459,6 +1459,18 @@ config RCU_CPU_STALL_TIMEOUT
	  RCU grace period persists, additional CPU stall warnings are
	  printed at more widely spaced intervals.

config RCU_PANIC_ON_STALL
	int "Panic on RCU Stalls"
	range 0 1
	default 0
	depends on RCU_STALL_COMMON
	help
	  Panic if a given RCU grace period extends more than the specified
	  number of seconds instead of just printing a CPU stall warning.
	  This helps to collect cpu context as part of ramdumps for post
	  mortem analysis.


config RCU_TRACE
	bool "Enable tracing for RCU"
	depends on DEBUG_KERNEL