diff options
| author | Rohit Vaswani <rvaswani@codeaurora.org> | 2014-11-12 17:58:44 -0800 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-22 11:16:38 -0700 |
| commit | 774b4c9f4aad171d77e968b5f4f672224cf60ec3 (patch) | |
| tree | 2f18700ee7af9c356370b585ac420f3d13a4c501 /lib | |
| parent | 68696605ff9d50503062626fdfa1e81fdd1ce652 (diff) | |
lib: Kconfig.debug: Fix the recursive dependency
An earlier commit 52a3101ed9b61787a49f3b5c298aa9240f4006dd
added a recursive dependency as part of CONFIG_DEBUG_SPINLOCK
lib/Kconfig.debug:585:error: recursive dependency detected!
lib/Kconfig.debug:585:symbol DEBUG_SPINLOCK_BITE_ON_BUG depends on DEBUG_SPINLOCK_PANIC_ON_BUG
lib/Kconfig.debug:593:symbol DEBUG_SPINLOCK_PANIC_ON_BUG depends on DEBUG_SPINLOCK_BITE_ON_BUG
Fix this by adding a choice menu.
Change-Id: I0e50103397bb71dec7056db5148cba988550b860
Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/Kconfig.debug | 36 |
1 files changed, 21 insertions, 15 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 646aae0e1cf6..46a73dc259f9 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -966,21 +966,27 @@ config DEBUG_SPINLOCK best used in conjunction with the NMI watchdog so that spinlock deadlocks are also debuggable. -config DEBUG_SPINLOCK_BITE_ON_BUG - bool "Cause a Watchdog Bite on Spinlock bug" - depends on DEBUG_SPINLOCK && !DEBUG_SPINLOCK_PANIC_ON_BUG && QCOM_WATCHDOG_V2 - help - On a spinlock bug, cause a watchdog bite so that we can get the precise - state of the system captured at the time of spin dump. This is mutually - exclusive with the below DEBUG_SPINLOCK_PANIC_ON_BUG config. - -config DEBUG_SPINLOCK_PANIC_ON_BUG - bool "Cause a Kernel Panic on Spinlock bug" - depends on DEBUG_SPINLOCK && !DEBUG_SPINLOCK_BITE_ON_BUG - help - On a spinlock bug, cause a kernel panic so that we can get the complete - information about the system at the time of spin dump in the dmesg. - This is mutually exclusive with the above DEBUG_SPINLOCK_BITE_ON_BUG. +choice + prompt "Perform Action on spinlock bug" + depends on DEBUG_SPINLOCK + + default DEBUG_SPINLOCK_BITE_ON_BUG + + config DEBUG_SPINLOCK_BITE_ON_BUG + bool "Cause a Watchdog Bite on Spinlock bug" + depends on MSM_WATCHDOG_V2 + help + On a spinlock bug, cause a watchdog bite so that we can get the precise + state of the system captured at the time of spin dump. This is mutually + exclusive with the below DEBUG_SPINLOCK_PANIC_ON_BUG config. + + config DEBUG_SPINLOCK_PANIC_ON_BUG + bool "Cause a Kernel Panic on Spinlock bug" + help + On a spinlock bug, cause a kernel panic so that we can get the complete + information about the system at the time of spin dump in the dmesg. + This is mutually exclusive with the above DEBUG_SPINLOCK_BITE_ON_BUG. +endchoice config DEBUG_MUTEXES bool "Mutex debugging: basic checks" |
