qcacld-2.0: Disable cpu sleep when collecting ramdump
On HL(sdio) platform, if /sys/module/lpm_levels/parameters/sleep_disabled set to N, ramdump collecting time will be over 300 seconds which is too long. Disable cpu sleep by request minimum pm qos value when collecting ramdump. Change-Id: Ib5514c174a53427ae14c0218201b810dde1bb650 CRs-Fixed: 2031145
This commit is contained in:
parent
dc730b5124
commit
ebc6c03971
|
@ -162,7 +162,6 @@ void hdd_ch_avoid_cb(void *hdd_context,void *indi_param);
|
|||
#define MEMORY_DEBUG_STR ""
|
||||
#endif
|
||||
|
||||
#define DISABLE_KRAIT_IDLE_PS_VAL 1
|
||||
#ifdef IPA_UC_OFFLOAD
|
||||
/* If IPA UC data path is enabled, target should reserve extra tx descriptors
|
||||
* for IPA WDI data path.
|
||||
|
|
|
@ -1024,7 +1024,10 @@ int ol_copy_ramdump(struct ol_softc *scn)
|
|||
goto out;
|
||||
}
|
||||
|
||||
vos_request_pm_qos_type(PM_QOS_CPU_DMA_LATENCY,
|
||||
DISABLE_KRAIT_IDLE_PS_VAL);
|
||||
ret = ol_target_coredump(scn, scn->ramdump_base, scn->ramdump_size);
|
||||
vos_remove_pm_qos();
|
||||
|
||||
out:
|
||||
return ret;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2015-2016 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2015-2017 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
|
@ -30,6 +30,8 @@
|
|||
#include <net/cnss.h>
|
||||
#endif
|
||||
|
||||
#define DISABLE_KRAIT_IDLE_PS_VAL 1
|
||||
|
||||
#if defined(WLAN_OPEN_SOURCE) && !defined(CONFIG_CNSS)
|
||||
#ifdef CONFIG_HAS_WAKELOCK
|
||||
#include <linux/wakelock.h>
|
||||
|
|
Loading…
Reference in New Issue