base-manager: add quick suspend/resume base

Quick suspend/resume infrastructure for
synchronizing the interfaces when resuming.
This commit is contained in:
Dylan Van Assche
2021-05-26 13:14:52 +00:00
committed by Aleksander Morgado
parent 940063419a
commit 38740e9d11
8 changed files with 200 additions and 1 deletions
+11
View File
@@ -227,6 +227,7 @@ static gboolean test_no_udev;
#endif
#if defined WITH_SYSTEMD_SUSPEND_RESUME
static gboolean test_no_suspend_resume;
static gboolean test_quick_suspend_resume;
#endif
#if defined WITH_QRTR
static gboolean test_no_qrtr;
@@ -261,6 +262,11 @@ static const GOptionEntry test_entries[] = {
"Disable suspend/resume support at runtime even if available",
NULL
},
{
"test-quick-suspend-resume", 0, 0, G_OPTION_ARG_NONE, &test_quick_suspend_resume,
"Enable quick suspend/resume support for modems which stay on during host suspension",
NULL
},
#endif
#if defined WITH_QRTR
{
@@ -318,6 +324,11 @@ mm_context_get_test_no_suspend_resume (void)
{
return test_no_suspend_resume;
}
gboolean
mm_context_get_test_quick_suspend_resume (void)
{
return test_quick_suspend_resume;
}
#endif
#if defined WITH_QRTR