unsigned long irqflags;
int abort = 0;
+#ifdef CONFIG_PLAT_RK
+ if (system_state != SYSTEM_RUNNING)
+ return;
+#endif
+
mutex_lock(&early_suspend_lock);
spin_lock_irqsave(&state_lock, irqflags);
if (state == SUSPEND_REQUESTED)
unsigned long irqflags;
int abort = 0;
+#ifdef CONFIG_PLAT_RK
+ if (system_state != SYSTEM_RUNNING)
+ return;
+#endif
+
mutex_lock(&early_suspend_lock);
spin_lock_irqsave(&state_lock, irqflags);
if (state == SUSPENDED)
unsigned long irqflags;
int old_sleep;
+#ifdef CONFIG_PLAT_RK
+ if (system_state != SYSTEM_RUNNING)
+ return;
+#endif
+
spin_lock_irqsave(&state_lock, irqflags);
old_sleep = state & SUSPEND_REQUESTED;
if (debug_mask & DEBUG_USER_STATE) {