mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
msm: camera: isp: Disable tasklet once
This changes avoids disabling and killing inactive tasklet. CRs-Fixed: 2530034 Change-Id: If1b0b04684f9425f742b51e5eb4b6ec8107f2c75 Signed-off-by: Venkat Chinta <vchinta@codeaurora.org>
This commit is contained in:
parent
6761d7b872
commit
f7d89d9bed
1 changed files with 3 additions and 0 deletions
|
|
@ -296,6 +296,9 @@ void cam_tasklet_stop(void *tasklet_info)
|
|||
{
|
||||
struct cam_tasklet_info *tasklet = tasklet_info;
|
||||
|
||||
if (!atomic_read(&tasklet->tasklet_active))
|
||||
return;
|
||||
|
||||
atomic_set(&tasklet->tasklet_active, 0);
|
||||
tasklet_kill(&tasklet->tasklet);
|
||||
tasklet_disable(&tasklet->tasklet);
|
||||
|
|
|
|||
Loading…
Reference in a new issue