power: remove unused function
This commit is contained in:
parent
d61666b28c
commit
8e36918c93
1 changed files with 0 additions and 34 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue