msm: camera: common: Append workq name in log
Append workq name in workq delay detect API to identify which workq is scheduled late. Create workq name macros for cci and cpas to pass to workq delay detect API. CRs-Fixed: 2994927 Change-Id: Iebc14520b918272e92b59c900de5fe17f38a2406 Signed-off-by: Sokchetra Eung <eung@codeaurora.org>
This commit is contained in:

gecommit door
Gerrit - the friendly Code Review server

bovenliggende
13670c580a
commit
ba664cddff
@@ -1506,7 +1506,7 @@ static void cam_cci_write_async_helper(struct work_struct *work)
|
||||
enum cci_i2c_master_t master;
|
||||
struct cam_cci_master_info *cci_master_info;
|
||||
|
||||
cam_req_mgr_thread_switch_delay_detect(
|
||||
cam_req_mgr_thread_switch_delay_detect(CAM_CCI_WORKQUEUE_NAME,
|
||||
write_async->workq_scheduled_ts);
|
||||
cci_dev = write_async->cci_dev;
|
||||
i2c_msg = &write_async->c_ctrl.cfg.cci_i2c_write_cfg;
|
||||
|
@@ -57,6 +57,8 @@
|
||||
|
||||
#define CAMX_CCI_DEV_NAME "cam-cci-driver"
|
||||
|
||||
#define CAM_CCI_WORKQUEUE_NAME "cam_cci_wq"
|
||||
|
||||
#define MAX_CCI 2
|
||||
|
||||
#define PRIORITY_QUEUE (QUEUE_0)
|
||||
|
@@ -399,7 +399,7 @@ int cam_cci_parse_dt_info(struct platform_device *pdev,
|
||||
|
||||
for (i = 0; i < MASTER_MAX; i++) {
|
||||
new_cci_dev->write_wq[i] = create_singlethread_workqueue(
|
||||
"cam_cci_wq");
|
||||
CAM_CCI_WORKQUEUE_NAME);
|
||||
if (!new_cci_dev->write_wq[i])
|
||||
CAM_ERR(CAM_CCI, "Failed to create write wq");
|
||||
}
|
||||
|
Verwijs in nieuw issue
Block a user