Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit faace3be authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "power:hibernate: KPI marker for Hibernation Success"

parents 7b758f3b cc93b6ef
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -40,6 +40,7 @@
#include <asm/suspend.h>
#include <asm/sysreg.h>
#include <asm/virt.h>
#include <soc/qcom/boot_stats.h>

/*
 * Hibernate core relies on this value being 0 on resume, and marks it
@@ -338,6 +339,7 @@ int swsusp_arch_suspend(void)
	}

	local_dbg_restore(flags);
	place_marker("PM: Kernel restore start!");

	return ret;
}
+4 −0
Original line number Diff line number Diff line
@@ -33,6 +33,7 @@
#include <linux/genhd.h>
#include <linux/ktime.h>
#include <trace/events/power.h>
#include <soc/qcom/boot_stats.h>

#include "power.h"

@@ -740,6 +741,7 @@ int hibernate(void)
		in_suspend = 0;
		pm_restore_gfp_mask();
	} else {
		place_marker("PM: Image restored!");
		pm_pr_dbg("Image restored successfully.\n");
	}

@@ -763,6 +765,7 @@ int hibernate(void)
	atomic_inc(&snapshot_device_available);
 Unlock:
	unlock_system_sleep();
	place_marker("PM: Hibernation Exit!");
	pr_info("hibernation exit\n");

	return error;
@@ -885,6 +888,7 @@ static int software_resume(void)
		goto Close_Finish;
	error = load_image_and_restore();
	thaw_processes();
	place_marker("PM: Thaw completed!");
 Finish:
	__pm_notifier_call_chain(PM_POST_RESTORE, nr_calls, NULL);
	pm_restore_console();