mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 00:24:41 -04:00
qcacld-3.0: Disable PANIC_ON_BUG for end user builds
PANIC_ON_BUG is currently enabled for all WLAN builds. While a customer can, and should, disable PANIC_ON_BUG for end user builds, this can be easily overlooked. Disable PANIC_ON_BUG by default on pure performance builds, to avoid accidentally crashing end user devices. Customers can opt-in to PANIC_ON_BUG as needed for validation on performance builds. Change-Id: I79371206b20b978f4e61954c2f49bbb7b07ba95e CRs-Fixed: 2186099
This commit is contained in:
parent
b4f780f737
commit
c1034df950
2 changed files with 14 additions and 2 deletions
8
Kbuild
8
Kbuild
|
|
@ -268,7 +268,13 @@ BUILD_DEBUG_VERSION := 1
|
|||
BUILD_DIAG_VERSION := 1
|
||||
|
||||
#Do we panic on bug? default is to warn
|
||||
PANIC_ON_BUG := 1
|
||||
ifeq ($(CONFIG_SLUB_DEBUG), y)
|
||||
PANIC_ON_BUG := 1
|
||||
else ifeq ($(CONFIG_PERF_DEBUG), y)
|
||||
PANIC_ON_BUG := 1
|
||||
else
|
||||
PANIC_ON_BUG := 0
|
||||
endif
|
||||
|
||||
#Enable OL debug and wmi unified functions
|
||||
CONFIG_ATH_PERF_PWR_OFFLOAD := 1
|
||||
|
|
|
|||
|
|
@ -158,6 +158,12 @@
|
|||
#define MEMORY_DEBUG_STR ""
|
||||
#endif
|
||||
|
||||
#ifdef PANIC_ON_BUG
|
||||
#define PANIC_ON_BUG_STR " +PANIC_ON_BUG"
|
||||
#else
|
||||
#define PANIC_ON_BUG_STR ""
|
||||
#endif
|
||||
|
||||
int wlan_start_ret_val;
|
||||
static DECLARE_COMPLETION(wlan_start_comp);
|
||||
static unsigned int dev_num = 1;
|
||||
|
|
@ -11767,7 +11773,7 @@ static int __hdd_module_init(void)
|
|||
pr_err("%s: Loading driver v%s (%s)\n",
|
||||
WLAN_MODULE_NAME,
|
||||
g_wlan_driver_version,
|
||||
TIMER_MANAGER_STR MEMORY_DEBUG_STR);
|
||||
TIMER_MANAGER_STR MEMORY_DEBUG_STR PANIC_ON_BUG_STR);
|
||||
|
||||
ret = wlan_hdd_state_ctrl_param_create();
|
||||
if (ret) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue