msm: SSR: Fix problems with concurrent SSRs
If one SSR call comes in and queues a work and the work item starts running and then another SSR call comes in we will end up with a running work item and a pending work item. The pending work item will not run until the running work item completes. With the current code the work item will run to completion and then the pending work item will run and restart the subsystem again. This is wrong since we want to 'short-circuit' the code in this case and do nothing if multiple SSR calls come in while the subsystem is in the 'crashed' state. Add state tracking logic so that we know what part of the restart process a particular subsystem is in and use it to fix this problem. Conflicts: arch/arm/mach-msm/subsystem_restart.c Change-Id: Iac8713951af1f290af1df7e94468d1843fc7980b CRs-Fixed: 397848 Signed-off-by:Stephen Boyd <sboyd@codeaurora.org> Signed-off-by:
Vikram Mulukutla <markivx@codeaurora.org>
Loading
Please sign in to comment