msm: vidc: Remove pm_qos usage
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com> Signed-off-by: alk3pInjection <webmaster@raspii.tech>
This commit is contained in:
parent
9e5002a6ad
commit
fc55b5715c
|
@ -806,9 +806,6 @@ int read_platform_resources_from_drv_data(
|
|||
res->debug_timeout = find_key_value(platform_data,
|
||||
"qcom,debug-timeout");
|
||||
|
||||
res->pm_qos_latency_us = find_key_value(platform_data,
|
||||
"qcom,pm-qos-latency-us");
|
||||
|
||||
res->max_secure_inst_count = find_key_value(platform_data,
|
||||
"qcom,max-secure-instances");
|
||||
|
||||
|
|
|
@ -193,7 +193,6 @@ struct msm_vidc_platform_resources {
|
|||
const char *hfi_version;
|
||||
bool never_unload_fw;
|
||||
bool debug_timeout;
|
||||
uint32_t pm_qos_latency_us;
|
||||
uint32_t max_inst_count;
|
||||
uint32_t max_secure_inst_count;
|
||||
int msm_vidc_hw_rsp_timeout;
|
||||
|
|
|
@ -23,7 +23,6 @@
|
|||
#include <linux/iommu.h>
|
||||
#include <linux/iopoll.h>
|
||||
#include <linux/of.h>
|
||||
#include <linux/pm_qos.h>
|
||||
#include <linux/regulator/consumer.h>
|
||||
#include <linux/slab.h>
|
||||
#include <linux/workqueue.h>
|
||||
|
@ -2224,14 +2223,6 @@ static int venus_hfi_core_init(void *device)
|
|||
__set_subcaches(device);
|
||||
__dsp_send_hfi_queue(device);
|
||||
|
||||
if (dev->res->pm_qos_latency_us) {
|
||||
#ifdef CONFIG_SMP
|
||||
dev->qos.type = PM_QOS_REQ_AFFINE_IRQ;
|
||||
dev->qos.irq = dev->hal_data->irq;
|
||||
#endif
|
||||
pm_qos_add_request(&dev->qos, PM_QOS_CPU_DMA_LATENCY,
|
||||
dev->res->pm_qos_latency_us);
|
||||
}
|
||||
dprintk(VIDC_DBG, "Core inited successfully\n");
|
||||
mutex_unlock(&dev->lock);
|
||||
return rc;
|
||||
|
@ -2258,10 +2249,6 @@ static int venus_hfi_core_release(void *dev)
|
|||
|
||||
mutex_lock(&device->lock);
|
||||
dprintk(VIDC_DBG, "Core releasing\n");
|
||||
if (device->res->pm_qos_latency_us &&
|
||||
pm_qos_request_active(&device->qos))
|
||||
pm_qos_remove_request(&device->qos);
|
||||
|
||||
__resume(device);
|
||||
__set_state(device, VENUS_STATE_DEINIT);
|
||||
__dsp_shutdown(device, 0);
|
||||
|
@ -4801,10 +4788,6 @@ static inline int __suspend(struct venus_hfi_device *device)
|
|||
|
||||
dprintk(VIDC_PROF, "Entering suspend\n");
|
||||
|
||||
if (device->res->pm_qos_latency_us &&
|
||||
pm_qos_request_active(&device->qos))
|
||||
pm_qos_remove_request(&device->qos);
|
||||
|
||||
rc = __tzbsp_set_video_state(TZBSP_VIDEO_STATE_SUSPEND);
|
||||
if (rc) {
|
||||
dprintk(VIDC_WARN, "Failed to suspend video core %d\n", rc);
|
||||
|
@ -4864,15 +4847,6 @@ static inline int __resume(struct venus_hfi_device *device)
|
|||
*/
|
||||
__set_threshold_registers(device);
|
||||
|
||||
if (device->res->pm_qos_latency_us) {
|
||||
#ifdef CONFIG_SMP
|
||||
device->qos.type = PM_QOS_REQ_AFFINE_IRQ;
|
||||
device->qos.irq = device->hal_data->irq;
|
||||
#endif
|
||||
pm_qos_add_request(&device->qos, PM_QOS_CPU_DMA_LATENCY,
|
||||
device->res->pm_qos_latency_us);
|
||||
}
|
||||
|
||||
__sys_set_debug(device, msm_vidc_fw_debug);
|
||||
|
||||
__enable_subcaches(device);
|
||||
|
|
Loading…
Reference in New Issue