summaryrefslogtreecommitdiffstats
path: root/kernel/power/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/power/main.c')
-rw-r--r--kernel/power/main.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/kernel/power/main.c b/kernel/power/main.c
index 40472a7c5536..4f43e724f6eb 100644
--- a/kernel/power/main.c
+++ b/kernel/power/main.c
@@ -54,9 +54,14 @@ EXPORT_SYMBOL_GPL(unlock_system_sleep);
void ksys_sync_helper(void)
{
- pr_info("Syncing filesystems ... ");
+ ktime_t start;
+ long elapsed_msecs;
+
+ start = ktime_get();
ksys_sync();
- pr_cont("done.\n");
+ elapsed_msecs = ktime_to_ms(ktime_sub(ktime_get(), start));
+ pr_info("Filesystems sync: %ld.%03ld seconds\n",
+ elapsed_msecs / MSEC_PER_SEC, elapsed_msecs % MSEC_PER_SEC);
}
EXPORT_SYMBOL_GPL(ksys_sync_helper);