msm: camera: core: Add delay detection support
This changes is to detect workqueue and tasklet scheduling and execution delay. CRs-Fixed: 2977775 Change-Id: Ia4b4845a067c22bd1f24bd63a971d103fcfc049c Signed-off-by: Ayush Kumar <ayushkr@codeaurora.org>
Esse commit está contido em:
@@ -125,4 +125,17 @@ int cam_common_read_poll_timeout(
|
||||
*/
|
||||
int cam_common_modify_timer(struct timer_list *timer, int32_t timeout_val);
|
||||
|
||||
/**
|
||||
* cam_common_util_thread_switch_delay_detect()
|
||||
*
|
||||
* @brief Detect if there is any scheduling delay
|
||||
*
|
||||
* @token: String identifier to print workq name or tasklet
|
||||
* @scheduled_time: Time when workq or tasklet was scheduled
|
||||
* @threshold: Threshold time
|
||||
*
|
||||
*/
|
||||
void cam_common_util_thread_switch_delay_detect(const char *token,
|
||||
ktime_t scheduled_time, uint32_t threshold);
|
||||
|
||||
#endif /* _CAM_COMMON_UTIL_H_ */
|
||||
|
Referência em uma nova issue
Block a user