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

Commit d62cdc2a authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "soc: qcom: ramdump: Remove page alignment during ramdump collection"

parents 56b4a5d4 8cb928e0
Loading
Loading
Loading
Loading
+2 −8
Original line number Diff line number Diff line
/* Copyright (c) 2011-2016, The Linux Foundation. All rights reserved.
/* Copyright (c) 2011-2017, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -326,13 +326,7 @@ static int _do_ramdump(void *handle, struct ramdump_segment *segments,
	if (rd_dev->complete_ramdump) {
		for (i = 0; i < nsegments-1; i++)
			segments[i].size =
			PAGE_ALIGN(segments[i+1].address - segments[i].address);

		segments[nsegments-1].size =
			PAGE_ALIGN(segments[nsegments-1].size);
	} else {
		for (i = 0; i < nsegments; i++)
			segments[i].size = PAGE_ALIGN(segments[i].size);
				segments[i + 1].address - segments[i].address;
	}

	rd_dev->segments = segments;