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/hibernate.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/hibernate.c')
-rw-r--r-- | kernel/power/hibernate.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/kernel/power/hibernate.c b/kernel/power/hibernate.c index abef759de7c8..cc105ecd9c07 100644 --- a/kernel/power/hibernate.c +++ b/kernel/power/hibernate.c @@ -14,7 +14,6 @@ #include <linux/export.h> #include <linux/suspend.h> -#include <linux/syscalls.h> #include <linux/reboot.h> #include <linux/string.h> #include <linux/device.h> @@ -709,9 +708,7 @@ int hibernate(void) goto Exit; } - pr_info("Syncing filesystems ... \n"); - ksys_sync(); - pr_info("done.\n"); + ksys_sync_helper(); error = freeze_processes(); if (error) |