qcacmn: Add functionality for rtpm prevent suspend sync
Add provision to call sync prevent suspend which will wait for system to resume and increment usage_count before returning. Change-Id: I855e3fc2660dc7f3f78bb70f8eef6228cbef96d3 CRs-Fixed: 3253335
This commit is contained in:

committato da
Madan Koyyalamudi

parent
5731d1c389
commit
b4ff9ea317
@@ -684,7 +684,7 @@ QDF_STATUS qdf_rtpm_get(uint8_t type, uint32_t id);
|
||||
QDF_STATUS qdf_rtpm_put(uint8_t type, uint32_t id);
|
||||
|
||||
/**
|
||||
* qdf_runtime_pm_allow_suspend() - Prevent Runtime suspend
|
||||
* qdf_runtime_pm_prevent_suspend() - Prevent Runtime suspend
|
||||
* @data: runtime PM lock
|
||||
*
|
||||
* This function will prevent runtime suspend, by incrementing
|
||||
@@ -694,6 +694,17 @@ QDF_STATUS qdf_rtpm_put(uint8_t type, uint32_t id);
|
||||
*/
|
||||
QDF_STATUS qdf_runtime_pm_prevent_suspend(qdf_runtime_lock_t *lock);
|
||||
|
||||
/**
|
||||
* qdf_runtime_pm_prevent_suspend_sync() - Synchronized Prevent Runtime suspend
|
||||
* @data: runtime PM lock
|
||||
*
|
||||
* This function will prevent runtime suspend, by incrementing
|
||||
* device's usage count and waits till system is in resumed state.
|
||||
*
|
||||
* Return: status
|
||||
*/
|
||||
QDF_STATUS qdf_runtime_pm_prevent_suspend_sync(qdf_runtime_lock_t *lock);
|
||||
|
||||
/**
|
||||
* qdf_runtime_pm_allow_suspend() - Allow Runtime suspend
|
||||
* @data: runtime PM lock
|
||||
@@ -756,6 +767,12 @@ QDF_STATUS qdf_runtime_pm_prevent_suspend(qdf_runtime_lock_t *lock)
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
static inline
|
||||
QDF_STATUS qdf_runtime_pm_prevent_suspend_sync(qdf_runtime_lock_t *lock)
|
||||
{
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
static inline
|
||||
QDF_STATUS qdf_runtime_pm_allow_suspend(qdf_runtime_lock_t *lock)
|
||||
{
|
||||
|
Fai riferimento in un nuovo problema
Block a user