Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 9d5000f5 authored by Maheshwar Ajja's avatar Maheshwar Ajja
Browse files

msm: vidc: Add schedule work functionality to SSR



User can trigger Sub System Restart (SSR) functionality
using command: "echo 1 > /d/msm_vidc/core0/trigger_ssr".
Kernel will acquire debugfs srcu lock before video driver
ssr function is called. There is deadlock if video driver
acquires core lock inside ssr function as other video threads
trying to acquire debugfs srcu lock after core lock acquired.
To resolve the issue schedule a work inside video driver ssr
function and return without acquiring core lock. The SSR
functionality will be executed whenever ssr work handler
is executed by the kernel.

Change-Id: I18f056156ee55dcb16e769e378434ee1ab6c4f5e
Signed-off-by: default avatarMaheshwar Ajja <majja@codeaurora.org>
parent d2560a26
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment