msm: subsystem_fatal_8x60: Make modem_crash_shutdown atomic-context safe
The function subsys_modem_crash_shutdown function will
be called from an atomic context via the panic notifier
chain. Make it safe to invoke in an atomic context.
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
diff --git a/arch/arm/mach-msm/subsystem-fatal-8x60.c b/arch/arm/mach-msm/subsystem-fatal-8x60.c
index 46a22d5..a061aa0 100644
--- a/arch/arm/mach-msm/subsystem-fatal-8x60.c
+++ b/arch/arm/mach-msm/subsystem-fatal-8x60.c
@@ -290,8 +290,8 @@
smsm_reset_modem(SMSM_RESET);
}
- /* Wait for 5ms to allow the modem to clean up caches etc. */
- usleep(5000);
+ /* Wait to allow the modem to clean up caches etc. */
+ mdelay(5);
}
/* Non-subsystem-specific functions */