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

Commit 6ff430c7 authored by Shreyas K K's avatar Shreyas K K
Browse files

soc: qcom: Remove redundant bootstats



'bootloader_load_kernel' and 'bootloader_chksum_time' are
redundant information. As the entries in IMEM have a limit
(as of now 8 entries), recreate them from *_start and *_done
variants, which are populated from the bootloader.

Change-Id: I4794cd5665a7593aca94542fd759fbd0da068d96
Signed-off-by: default avatarShreyas K K <shrekk@codeaurora.org>
parent 821a4366
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -93,9 +93,11 @@ static void set_bootloader_stats(bool hibernation_restore)
		_create_boot_marker("D - APPSBL Kernel Load End - ",
			readl_relaxed(&boot_stats->load_kernel_done));
		_create_boot_marker("D - APPSBL Kernel Load Time - ",
			readl_relaxed(&boot_stats->bootloader_load_kernel));
			readl_relaxed(&boot_stats->load_kernel_done) -
			readl_relaxed(&boot_stats->load_kernel_start));
		_create_boot_marker("D - APPSBL Kernel Auth Time - ",
			readl_relaxed(&boot_stats->bootloader_chksum_time));
			readl_relaxed(&boot_stats->bootloader_chksum_done) -
			readl_relaxed(&boot_stats->bootloader_chksum_start));
	} else {
		_create_boot_marker("D - APPSBL Hibernation Image Load Start -",
			readl_relaxed(&boot_stats->load_kernel_start));
+2 −1
Original line number Diff line number Diff line
@@ -74,7 +74,8 @@ static void print_boot_stats(void)
	pr_info("KPI: Bootloader end count = %u\n",
			readl_relaxed(&boot_stats->bootloader_end));
	pr_info("KPI: Bootloader load kernel count = %u\n",
			readl_relaxed(&boot_stats->bootloader_load_kernel));
			readl_relaxed(&boot_stats->load_kernel_done) -
			readl_relaxed(&boot_stats->load_kernel_start));
	pr_info("KPI: Kernel MPM timestamp = %u\n",
			readl_relaxed(mpm_counter_base));
	pr_info("KPI: Kernel MPM Clock frequency = %u\n",
+0 −2
Original line number Diff line number Diff line
@@ -19,10 +19,8 @@ struct boot_stats {
	uint32_t bootloader_start;
	uint32_t bootloader_end;
	uint32_t kernel_entry;
	uint32_t bootloader_load_kernel;
	uint32_t load_kernel_start;
	uint32_t load_kernel_done;
	uint32_t bootloader_chksum_time;
	uint32_t bootloader_chksum_start;
	uint32_t bootloader_chksum_done;
};