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

Commit cbf50049 authored by Atul Raut's avatar Atul Raut Committed by Vivek Kumar
Browse files

arm64: hibernate: Add Hibernation KPI marker



Update KPI marker for Hibernation Image restore.

Change-Id: I4caf64c0c6c65de63d6ce3f9ae0a565ff58add6a
Signed-off-by: default avatarAtul Raut <araut@codeaurora.org>
Signed-off-by: default avatarVivek Kumar <vivekuma@codeaurora.org>
parent fc0569df
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -304,6 +304,7 @@ int swsusp_arch_suspend(void)
		sleep_cpu = smp_processor_id();
		ret = swsusp_save();
	} else {
		place_marker("M - Image Kernel Start");
		/* Clean kernel core startup/idle code to PoC*/
		dcache_clean_range(__mmuoff_data_start, __mmuoff_data_end);
		dcache_clean_range(__idmap_text_start, __idmap_text_end);
+6 −4
Original line number Diff line number Diff line
@@ -335,6 +335,7 @@ static int create_image(int platform_mode)
 Platform_finish:
	platform_finish(platform_mode);

	place_marker("M - Hibernation: start device resume");
	dpm_resume_start(in_suspend ?
		(error ? PMSG_RECOVER : PMSG_THAW) : PMSG_RESTORE);

@@ -410,7 +411,7 @@ int hibernation_snapshot(int platform_mode)

	resume_console();
	dpm_complete(msg);

	place_marker("M - Hibernation: end device resume");
 Close:
	platform_end(platform_mode);
	return error;
@@ -750,7 +751,7 @@ int hibernate(void)
		in_suspend = 0;
		pm_restore_gfp_mask();
	} else {
		place_marker("PM: Image restored!");
		place_marker("M - PM: Image restored!");
		pm_pr_dbg("Image restored successfully.\n");
	}

@@ -765,6 +766,7 @@ int hibernate(void)
			error = load_image_and_restore();
	}
	thaw_processes();
	place_marker("M - Hibernation: processes thaw done");

	/* Don't bother checking whether freezer_test_done is true */
	freezer_test_done = false;
@@ -774,7 +776,7 @@ int hibernate(void)
	atomic_inc(&snapshot_device_available);
 Unlock:
	unlock_system_sleep();
	place_marker("PM: Hibernation Exit!");
	place_marker("M - PM: Hibernation Exit!");
	pr_info("hibernation exit\n");

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