diff --git a/kernel/power/suspend.c b/kernel/power/suspend.c index 6ba20e0b93f9..1bfef885dbd9 100644 --- a/kernel/power/suspend.c +++ b/kernel/power/suspend.c @@ -501,40 +501,6 @@ static void sys_sync_work_func(struct work_struct *work) wake_up(&sys_sync_wait); } -static int sys_sync_queue(void) -{ - int work_status = work_busy(&sys_sync_work); - - /*Check if the previous work still running.*/ - if (!(work_status & WORK_BUSY_PENDING)) { - if (work_status & WORK_BUSY_RUNNING) { - while (wait_event_timeout(sys_sync_wait, sys_sync_completed, - msecs_to_jiffies(100)) == 0) { - if (pm_wakeup_pending()) { - pr_info("PM: Pre-Syncing abort\n"); - goto abort; - } - } - pr_info("PM: Pre-Syncing done\n"); - } - sys_sync_completed = false; - schedule_work(&sys_sync_work); - } - - while (wait_event_timeout(sys_sync_wait, sys_sync_completed, - msecs_to_jiffies(100)) == 0) { - if (pm_wakeup_pending()) { - pr_info("PM: Syncing abort\n"); - goto abort; - } - } - - pr_info("PM: Syncing done\n"); - return 0; -abort: - return -EAGAIN; -} - /** * enter_state - Do common work needed to enter system sleep state. * @state: System sleep state to enter.