diff options
author | Harry Pan <harry.pan@intel.com> | 2019-02-25 13:36:41 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2019-04-02 10:53:19 +0200 |
commit | b5dee3130bb4014511f5d0dd46855ed843e3fdc8 (patch) | |
tree | d9abfcf2fc0743aa3283653c27655fee6b4f5487 /kernel/power/user.c | |
parent | PM / wakeup: Use pm_pr_dbg() instead of pr_debug() (diff) | |
download | linux-b5dee3130bb4014511f5d0dd46855ed843e3fdc8.tar.xz linux-b5dee3130bb4014511f5d0dd46855ed843e3fdc8.zip |
PM / sleep: Refactor filesystems sync to reduce duplication
Create a common helper to sync filesystems for system suspend and
hibernation.
Signed-off-by: Harry Pan <harry.pan@intel.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
[ rjw: Changelog ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'kernel/power/user.c')
-rw-r--r-- | kernel/power/user.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/kernel/power/user.c b/kernel/power/user.c index 2d8b60a3c86b..cb24e840a3e6 100644 --- a/kernel/power/user.c +++ b/kernel/power/user.c @@ -10,7 +10,6 @@ */ #include <linux/suspend.h> -#include <linux/syscalls.h> #include <linux/reboot.h> #include <linux/string.h> #include <linux/device.h> @@ -228,9 +227,7 @@ static long snapshot_ioctl(struct file *filp, unsigned int cmd, if (data->frozen) break; - printk("Syncing filesystems ... "); - ksys_sync(); - printk("done.\n"); + ksys_sync_helper(); error = freeze_processes(); if (error) |