Skip to content

Commit

Permalink
kernel: Fix Oneplus poor coding standard
Browse files Browse the repository at this point in the history
Signed-off-by: neobuddy89 <neobuddy89@gmail.com>
  • Loading branch information
neobuddy89 committed Jan 17, 2019
1 parent e13a139 commit aba019b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kernel/power/suspend.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,12 @@ static DECLARE_WAIT_QUEUE_HEAD(suspend_freeze_wait_head);
enum freeze_state __read_mostly suspend_freeze_state;
static DEFINE_SPINLOCK(suspend_freeze_lock);

#ifndef CONFIG_SUSPEND_SKIP_SYNC
static bool sys_sync_completed = false;
static void sys_sync_work_func(struct work_struct *work);
static DECLARE_WORK(sys_sync_work, sys_sync_work_func);
static DECLARE_WAIT_QUEUE_HEAD(sys_sync_wait);
#endif

void freeze_set_ops(const struct platform_freeze_ops *ops)
{
Expand Down Expand Up @@ -486,6 +488,7 @@ static void suspend_finish(void)
pm_restore_console();
}

#ifndef CONFIG_SUSPEND_SKIP_SYNC
/**
* Sync the filesystem in seperate workqueue.
* Then check it finishing or not periodically and
Expand Down Expand Up @@ -534,6 +537,7 @@ static int sys_sync_queue(void)
abort:
return -EAGAIN;
}
#endif

/**
* enter_state - Do common work needed to enter system sleep state.
Expand Down

0 comments on commit aba019b

Please sign in to comment.