flo: debug: disable DLOAD mode when panic and abnormal reset

Disable download mode on crashes and keep system to continue
booting for better user experience. Download mode is useful for
collecting ramdump for furhter analysis during stability test.

To enable, type next line in the adb shell before stability test

echo 1 > /sys/module/restart/parameters/download_mode

Change-Id: I08c02dfd42cf28803b78385916f50ea3e42eb7ae
Signed-off-by: paris_yeh <paris_yeh@asus.com>
This commit is contained in:
paris_yeh 2013-04-17 17:31:01 -07:00 committed by Iliyan Malchev
parent 51653ef972
commit ee0d677158

View file

@ -66,7 +66,7 @@ static void *dload_mode_addr;
/* Download mode master kill-switch */
static int dload_set(const char *val, struct kernel_param *kp);
static int download_mode = 1;
static int download_mode = 0;
module_param_call(download_mode, dload_set, param_get_int,
&download_mode, 0644);