summaryrefslogtreecommitdiff
path: root/kernel/power/power.h
diff options
context:
space:
mode:
authorChen Yu <yu.c.chen@intel.com>2023-04-14 15:10:26 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2023-04-27 20:00:28 +0300
commit08169a162f97819d3e5b4a342bb9cf5137787154 (patch)
treefd6163fecc83a5bcb27af62bb5fe76b1315ba592 /kernel/power/power.h
parent0cfd8703e7da687924371e9bc77a025bdeba9637 (diff)
downloadlinux-08169a162f97819d3e5b4a342bb9cf5137787154.tar.xz
PM: hibernate: Turn snapshot_test into global variable
There is need to check snapshot_test and open block device in different mode, so as to avoid the race condition. No functional changes intended. Suggested-by: Pavankumar Kondeti <quic_pkondeti@quicinc.com> Signed-off-by: Chen Yu <yu.c.chen@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'kernel/power/power.h')
-rw-r--r--kernel/power/power.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/power/power.h b/kernel/power/power.h
index b4f433943209..b83c8d5e188d 100644
--- a/kernel/power/power.h
+++ b/kernel/power/power.h
@@ -59,6 +59,7 @@ asmlinkage int swsusp_save(void);
/* kernel/power/hibernate.c */
extern bool freezer_test_done;
+extern bool snapshot_test;
extern int hibernation_snapshot(int platform_mode);
extern int hibernation_restore(int platform_mode);